pub enum LayerError<E> {
Missing {
uri: String,
importer: Option<String>,
},
Resolver {
uri: String,
importer: Option<String>,
source: E,
},
Read {
key: String,
source: ReadError,
},
Integrity {
uri: String,
importer: String,
source: IntegrityError,
},
Cycle {
chain: Vec<String>,
},
}Expand description
Why a layer stack could not be built. E is the resolver’s error type.
Variants§
Missing
The resolver has no layer for this import.
Resolver
The resolver failed.
Read
A loaded layer is not a valid IFCX file.
Integrity
The bytes of an imported layer do not satisfy the import’s integrity,
or the value cannot be checked.
Cycle
Layers import each other in a loop. chain lists the keys along the
loop and ends with the key it starts with.
Trait Implementations§
Source§impl<E: Debug> Debug for LayerError<E>
impl<E: Debug> Debug for LayerError<E>
Source§impl<E: Display> Display for LayerError<E>
impl<E: Display> Display for LayerError<E>
Source§impl<E> Error for LayerError<E>where
E: Error + 'static,
impl<E> Error for LayerError<E>where
E: Error + 'static,
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<E> Freeze for LayerError<E>where
E: Freeze,
impl<E> !RefUnwindSafe for LayerError<E>
impl<E> Send for LayerError<E>where
E: Send,
impl<E> Sync for LayerError<E>where
E: Sync,
impl<E> Unpin for LayerError<E>where
E: Unpin,
impl<E> !UnwindSafe for LayerError<E>
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