pub struct ByteError {
pub kind: ByteErrorKind,
pub offset: usize,
pub message: String,
}Expand description
A byte-lane error located at an absolute input or output offset.
Fields§
§kind: ByteErrorKindStable machine-matchable failure category.
offset: usizeAbsolute byte offset at which the failure was detected.
message: StringHuman-readable context.
Trait Implementations§
impl Eq for ByteError
Source§impl Error for ByteError
impl Error for ByteError
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<ByteError> for AttributeError
impl From<ByteError> for AttributeError
impl StructuralPartialEq for ByteError
Auto Trait Implementations§
impl Freeze for ByteError
impl RefUnwindSafe for ByteError
impl Send for ByteError
impl Sync for ByteError
impl Unpin for ByteError
impl UnsafeUnpin for ByteError
impl UnwindSafe for ByteError
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