pub enum BytePunchError {
Dictionary(String),
InvalidToken(String),
Compression(String),
Decompression(String),
Io(Error),
Json(Error),
InvalidMagic([u8; 4]),
UnsupportedVersion(u8),
}Expand description
Errors that can occur during compression/decompression
Variants§
Dictionary(String)
InvalidToken(String)
Compression(String)
Decompression(String)
Io(Error)
Json(Error)
InvalidMagic([u8; 4])
UnsupportedVersion(u8)
Trait Implementations§
Source§impl Debug for BytePunchError
impl Debug for BytePunchError
Source§impl Display for BytePunchError
impl Display for BytePunchError
Source§impl Error for BytePunchError
impl Error for BytePunchError
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<Error> for BytePunchError
impl From<Error> for BytePunchError
Auto Trait Implementations§
impl Freeze for BytePunchError
impl !RefUnwindSafe for BytePunchError
impl Send for BytePunchError
impl Sync for BytePunchError
impl Unpin for BytePunchError
impl !UnwindSafe for BytePunchError
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