pub enum TreadleDefinitionError {
UnsupportedVersion {
actual: u32,
expected: u32,
},
Invalid(String),
Decode(DecodeError),
NonCanonicalBytes,
}Expand description
Canonical treadle definition validation/decoding errors.
Variants§
Trait Implementations§
Source§impl Debug for TreadleDefinitionError
impl Debug for TreadleDefinitionError
Source§impl Display for TreadleDefinitionError
impl Display for TreadleDefinitionError
Source§impl Error for TreadleDefinitionError
impl Error for TreadleDefinitionError
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 From<DecodeError> for TreadleDefinitionError
impl From<DecodeError> for TreadleDefinitionError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TreadleDefinitionError
impl RefUnwindSafe for TreadleDefinitionError
impl Send for TreadleDefinitionError
impl Sync for TreadleDefinitionError
impl Unpin for TreadleDefinitionError
impl UnsafeUnpin for TreadleDefinitionError
impl UnwindSafe for TreadleDefinitionError
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