pub enum LayerError {
Unreadable {
source: String,
why: String,
},
}Expand description
Anything that can fail while a layer reads.
Variants§
Unreadable
The layer could not read its source at all — a malformed file, a subprocess that failed. Unlike an unknown key, this is not something to degrade past.
Trait Implementations§
Source§impl Clone for LayerError
impl Clone for LayerError
Source§fn clone(&self) -> LayerError
fn clone(&self) -> LayerError
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 LayerError
impl Debug for LayerError
Source§impl Display for LayerError
impl Display for LayerError
Source§impl Error for LayerError
impl Error for LayerError
1.30.0 · 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()
Source§impl PartialEq for LayerError
impl PartialEq for LayerError
impl StructuralPartialEq for LayerError
Auto Trait Implementations§
impl Freeze for LayerError
impl RefUnwindSafe for LayerError
impl Send for LayerError
impl Sync for LayerError
impl Unpin for LayerError
impl UnsafeUnpin for LayerError
impl UnwindSafe for LayerError
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