pub enum UtilError {
BytesTo {
src: usize,
dst: usize,
},
BytesInto {
src: usize,
dst: usize,
},
BytesIntoVec {
src: usize,
dst: usize,
},
BytesToVec {
src: usize,
dst: usize,
},
BytesIntoString(FromUtf8Error),
}Expand description
An error caused by a utility function.
Variants§
Trait Implementations§
Source§impl Fail for UtilError
impl Fail for UtilError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreAuto Trait Implementations§
impl Freeze for UtilError
impl RefUnwindSafe for UtilError
impl Send for UtilError
impl Sync for UtilError
impl Unpin for UtilError
impl UnsafeUnpin for UtilError
impl UnwindSafe for UtilError
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