pub enum FixedIdError {
InvalidLength(usize),
InvalidHex(String),
}Expand description
An error returned when parsing a fixed-size protocol identifier.
Variants§
InvalidLength(usize)
The decoded identifier did not contain exactly 32 bytes.
InvalidHex(String)
The identifier was not valid hexadecimal.
Trait Implementations§
Source§impl Clone for FixedIdError
impl Clone for FixedIdError
Source§fn clone(&self) -> FixedIdError
fn clone(&self) -> FixedIdError
Returns a duplicate of the value. Read more
1.0.0 · 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 FixedIdError
impl Debug for FixedIdError
Source§impl Display for FixedIdError
impl Display for FixedIdError
Source§impl Error for FixedIdError
impl Error for FixedIdError
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 FixedIdError
impl PartialEq for FixedIdError
impl Eq for FixedIdError
impl StructuralPartialEq for FixedIdError
Auto Trait Implementations§
impl Freeze for FixedIdError
impl RefUnwindSafe for FixedIdError
impl Send for FixedIdError
impl Sync for FixedIdError
impl Unpin for FixedIdError
impl UnwindSafe for FixedIdError
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