pub struct Oversized {
pub size: u32,
pub limit: u32,
pub kind: Option<u8>,
pub id: Option<u32>,
pub method: Option<Method>,
}Expand description
An incoming frame whose declared length exceeds the limit. Its payload is discarded, never delivered; the kind and request id come from its first bytes when they can be read.
Fields§
§size: u32The declared payload length.
limit: u32§kind: Option<u8>The message kind, if the payload starts like a message.
id: Option<u32>The request id of a request or response.
method: Option<Method>The method of a request or response.
Trait Implementations§
impl Copy for Oversized
impl Eq for Oversized
Source§impl Error for Oversized
impl Error for Oversized
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 Oversized
Auto Trait Implementations§
impl Freeze for Oversized
impl RefUnwindSafe for Oversized
impl Send for Oversized
impl Sync for Oversized
impl Unpin for Oversized
impl UnsafeUnpin for Oversized
impl UnwindSafe for Oversized
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