pub enum FramingError {
FrameTooLarge {
len: usize,
capacity: usize,
},
}Available on crate feature
embedded only.Expand description
Errors from length-prefix framing.
Variants§
FrameTooLarge
A frame length — declared on the wire, or requested for send — exceeds the fixed buffer capacity it has to fit in.
Trait Implementations§
Source§impl Clone for FramingError
impl Clone for FramingError
Source§fn clone(&self) -> FramingError
fn clone(&self) -> FramingError
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 moreimpl Copy for FramingError
Source§impl Debug for FramingError
impl Debug for FramingError
impl Eq for FramingError
Source§impl PartialEq for FramingError
impl PartialEq for FramingError
Source§fn eq(&self, other: &FramingError) -> bool
fn eq(&self, other: &FramingError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FramingError
Auto Trait Implementations§
impl Freeze for FramingError
impl RefUnwindSafe for FramingError
impl Send for FramingError
impl Sync for FramingError
impl Unpin for FramingError
impl UnsafeUnpin for FramingError
impl UnwindSafe for FramingError
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