pub enum LongEccHeaderFromByteSliceError {
InsufficientBytes(usize),
FromBytes(LongEccHeaderFromBytesError),
}Expand description
Errors returned by
LongEccHeader::from_byte_slice.
Variants§
InsufficientBytes(usize)
The slice holds fewer than the 32 bytes a header occupies.
FromBytes(LongEccHeaderFromBytesError)
Propagated from parsing the 32-byte header.
Trait Implementations§
Source§impl Clone for LongEccHeaderFromByteSliceError
impl Clone for LongEccHeaderFromByteSliceError
Source§fn clone(&self) -> LongEccHeaderFromByteSliceError
fn clone(&self) -> LongEccHeaderFromByteSliceError
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 Eq for LongEccHeaderFromByteSliceError
Source§impl Error for LongEccHeaderFromByteSliceError
impl Error for LongEccHeaderFromByteSliceError
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<LongEccHeaderFromByteSliceError> for LongEccDecodeError
impl From<LongEccHeaderFromByteSliceError> for LongEccDecodeError
Source§fn from(source: LongEccHeaderFromByteSliceError) -> Self
fn from(source: LongEccHeaderFromByteSliceError) -> Self
Converts to this type from the input type.
Source§impl From<LongEccHeaderFromByteSliceError> for LongEccFastValidateError
impl From<LongEccHeaderFromByteSliceError> for LongEccFastValidateError
Source§fn from(source: LongEccHeaderFromByteSliceError) -> Self
fn from(source: LongEccHeaderFromByteSliceError) -> Self
Converts to this type from the input type.
Source§impl From<LongEccHeaderFromBytesError> for LongEccHeaderFromByteSliceError
impl From<LongEccHeaderFromBytesError> for LongEccHeaderFromByteSliceError
Source§fn from(source: LongEccHeaderFromBytesError) -> Self
fn from(source: LongEccHeaderFromBytesError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for LongEccHeaderFromByteSliceError
Auto Trait Implementations§
impl Freeze for LongEccHeaderFromByteSliceError
impl RefUnwindSafe for LongEccHeaderFromByteSliceError
impl Send for LongEccHeaderFromByteSliceError
impl Sync for LongEccHeaderFromByteSliceError
impl Unpin for LongEccHeaderFromByteSliceError
impl UnsafeUnpin for LongEccHeaderFromByteSliceError
impl UnwindSafe for LongEccHeaderFromByteSliceError
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