pub struct UnknownDurability(pub u8);Expand description
Error returned when a u8 does not map to a known Durability variant.
Preserves the raw byte for logging by the caller.
Tuple Fields§
§0: u8Trait Implementations§
Source§impl Clone for UnknownDurability
impl Clone for UnknownDurability
Source§fn clone(&self) -> UnknownDurability
fn clone(&self) -> UnknownDurability
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 moreimpl Copy for UnknownDurability
Source§impl Debug for UnknownDurability
impl Debug for UnknownDurability
Source§impl Display for UnknownDurability
impl Display for UnknownDurability
impl Eq for UnknownDurability
Source§impl Error for UnknownDurability
impl Error for UnknownDurability
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 UnknownDurability
impl PartialEq for UnknownDurability
impl StructuralPartialEq for UnknownDurability
Auto Trait Implementations§
impl Freeze for UnknownDurability
impl RefUnwindSafe for UnknownDurability
impl Send for UnknownDurability
impl Sync for UnknownDurability
impl Unpin for UnknownDurability
impl UnsafeUnpin for UnknownDurability
impl UnwindSafe for UnknownDurability
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