pub struct BlockError { /* private fields */ }Expand description
An error returned by the block decoder
At the moment it’s not possible to find out what
error occurred other than through the Display
implementation, this will change in a future release.
Trait Implementations§
Source§impl Clone for BlockError
impl Clone for BlockError
Source§fn clone(&self) -> BlockError
fn clone(&self) -> BlockError
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 BlockError
impl Debug for BlockError
Source§impl Display for BlockError
impl Display for BlockError
Source§impl Error for BlockError
impl Error for BlockError
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 From<BlockError> for DecoderError
impl From<BlockError> for DecoderError
Source§fn from(err: BlockError) -> Self
fn from(err: BlockError) -> Self
Converts to this type from the input type.
Source§impl From<BlockError> for Error
impl From<BlockError> for Error
Source§fn from(err: BlockError) -> Error
fn from(err: BlockError) -> Error
Converts to this type from the input type.
Source§impl PartialEq for BlockError
impl PartialEq for BlockError
impl StructuralPartialEq for BlockError
Auto Trait Implementations§
impl Freeze for BlockError
impl RefUnwindSafe for BlockError
impl Send for BlockError
impl Sync for BlockError
impl Unpin for BlockError
impl UnsafeUnpin for BlockError
impl UnwindSafe for BlockError
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