pub enum VarintError {
OutOfRange,
Truncated,
}Expand description
Why a varint could not be encoded or decoded.
Variants§
OutOfRange
The value exceeds 2^62-1 and has no QUIC varint representation.
Truncated
The input ended in the middle of a varint. Read more bytes and retry; this is not a protocol violation.
Trait Implementations§
Source§impl Clone for VarintError
impl Clone for VarintError
impl Copy for VarintError
Source§impl Debug for VarintError
impl Debug for VarintError
Source§impl Display for VarintError
impl Display for VarintError
impl Eq for VarintError
Source§impl Error for VarintError
impl Error for VarintError
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 VarintError
impl PartialEq for VarintError
impl StructuralPartialEq for VarintError
Auto Trait Implementations§
impl Freeze for VarintError
impl RefUnwindSafe for VarintError
impl Send for VarintError
impl Sync for VarintError
impl Unpin for VarintError
impl UnsafeUnpin for VarintError
impl UnwindSafe for VarintError
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