pub enum BinaryEncodeError {
FrameBudgetTooSmall {
budget: usize,
required: usize,
},
TooManyItems {
field: &'static str,
actual: usize,
},
PayloadTooLarge {
field: &'static str,
actual: usize,
},
}Expand description
Binary encode error.
Variants§
FrameBudgetTooSmall
A concrete frame budget could not fit the fixed wire header.
TooManyItems
A list length exceeded u32::MAX.
PayloadTooLarge
A byte payload exceeded u32::MAX.
Trait Implementations§
Source§impl Clone for BinaryEncodeError
impl Clone for BinaryEncodeError
Source§fn clone(&self) -> BinaryEncodeError
fn clone(&self) -> BinaryEncodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BinaryEncodeError
impl Debug for BinaryEncodeError
Source§impl Display for BinaryEncodeError
impl Display for BinaryEncodeError
impl Eq for BinaryEncodeError
Source§impl Error for BinaryEncodeError
impl Error for BinaryEncodeError
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 BinaryEncodeError
impl PartialEq for BinaryEncodeError
impl StructuralPartialEq for BinaryEncodeError
Auto Trait Implementations§
impl Freeze for BinaryEncodeError
impl RefUnwindSafe for BinaryEncodeError
impl Send for BinaryEncodeError
impl Sync for BinaryEncodeError
impl Unpin for BinaryEncodeError
impl UnsafeUnpin for BinaryEncodeError
impl UnwindSafe for BinaryEncodeError
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