Enum binary_utils::Error
source · pub enum Error {
InvalidId,
InvalidStructure,
NotEnoughtBytes(String),
FailedToWrite,
}Expand description
An enum containing the different variants, why the read and write functions could fail
Variants§
InvalidId
Used if an id was read that was not expected
InvalidStructure
Used if the read structure dooes not fit the expected one
NotEnoughtBytes(String)
Used if there are not enough bytes in the stream to read the expected data
FailedToWrite
Used if the Write Operation failed
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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