pub enum ResolvedAction {
PassThrough,
Redirect {
replacement_path: PathBuf,
},
FallbackToOriginal,
HardErrorMissingFile,
}Expand description
What the hook should do for a given requested path, once a rule has been matched (or not) and the existence of the replacement asset has been checked.
Variants§
PassThrough
No rule matched this path; pass the call straight through.
Redirect
A rule matched and the replacement asset exists at this path; the caller should stage a patched temp file and redirect there.
FallbackToOriginal
A rule matched in GracefulFallback mode but the replacement
asset is missing; pass through to the original file.
HardErrorMissingFile
A rule matched in HardError mode but the replacement asset is
missing; the caller should fail the open outright.
Trait Implementations§
Source§impl Clone for ResolvedAction
impl Clone for ResolvedAction
Source§fn clone(&self) -> ResolvedAction
fn clone(&self) -> ResolvedAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolvedAction
impl Debug for ResolvedAction
Source§impl PartialEq for ResolvedAction
impl PartialEq for ResolvedAction
Source§fn eq(&self, other: &ResolvedAction) -> bool
fn eq(&self, other: &ResolvedAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ResolvedAction
impl StructuralPartialEq for ResolvedAction
Auto Trait Implementations§
impl Freeze for ResolvedAction
impl RefUnwindSafe for ResolvedAction
impl Send for ResolvedAction
impl Sync for ResolvedAction
impl Unpin for ResolvedAction
impl UnsafeUnpin for ResolvedAction
impl UnwindSafe for ResolvedAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more