pub enum JustcodeError {
UnexpectedEndOfInput {
expected: usize,
got: usize,
},
SizeLimitExceeded {
limit: usize,
requested: usize,
},
InvalidVarint,
Custom(String),
}Expand description
Errors that can occur during encoding or decoding.
Variants§
UnexpectedEndOfInput
Not enough bytes to decode the value.
SizeLimitExceeded
Size limit exceeded during decoding.
InvalidVarint
Invalid varint encoding.
Custom(String)
Custom error message.
Implementations§
Trait Implementations§
Source§impl Clone for JustcodeError
impl Clone for JustcodeError
Source§fn clone(&self) -> JustcodeError
fn clone(&self) -> JustcodeError
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 JustcodeError
impl Debug for JustcodeError
Source§impl Display for JustcodeError
impl Display for JustcodeError
Source§impl Error for JustcodeError
impl Error for JustcodeError
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 PartialEq for JustcodeError
impl PartialEq for JustcodeError
impl Eq for JustcodeError
impl StructuralPartialEq for JustcodeError
Auto Trait Implementations§
impl Freeze for JustcodeError
impl RefUnwindSafe for JustcodeError
impl Send for JustcodeError
impl Sync for JustcodeError
impl Unpin for JustcodeError
impl UnwindSafe for JustcodeError
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