pub struct TooLarge {
pub len: u64,
pub max: usize,
}Expand description
A frame ran past a ceiling: MAX_FRAME_BYTES for one body, announced or
serialised, or MAX_PARTIAL_FRAME_BYTES when the decoder’s own accumulation
bound is what a read ran into.
Fields§
§len: u64Length the peer announced, or the length the local side serialised to.
max: usizeThe ceiling that was crossed: MAX_FRAME_BYTES for a frame body, or
MAX_PARTIAL_FRAME_BYTES when the decoder’s own accumulation bound is
what a read ran into.
Trait Implementations§
impl Copy for TooLarge
impl Eq for TooLarge
Source§impl Error for TooLarge
impl Error for TooLarge
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()
impl StructuralPartialEq for TooLarge
Auto Trait Implementations§
impl Freeze for TooLarge
impl RefUnwindSafe for TooLarge
impl Send for TooLarge
impl Sync for TooLarge
impl Unpin for TooLarge
impl UnsafeUnpin for TooLarge
impl UnwindSafe for TooLarge
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