pub struct FrameTooLarge {
pub declared: u32,
pub max: usize,
}Expand description
A length prefix declared more payload than the limit allows.
The framing of the stream it came from is no longer trustworthy; the connection should be dropped.
Fields§
§declared: u32The payload length the prefix declared. u32 because that is the
prefix’s width on the wire: the value is reported exactly as
received, whatever the platform’s usize.
max: usizeThe limit it exceeded. usize because it echoes the max_payload
the caller passed, which bounds a buffer length.
Trait Implementations§
Source§impl Clone for FrameTooLarge
impl Clone for FrameTooLarge
impl Copy for FrameTooLarge
Source§impl Debug for FrameTooLarge
impl Debug for FrameTooLarge
Source§impl Display for FrameTooLarge
impl Display for FrameTooLarge
impl Eq for FrameTooLarge
Source§impl Error for FrameTooLarge
impl Error for FrameTooLarge
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 From<FrameTooLarge> for Error
impl From<FrameTooLarge> for Error
Source§fn from(e: FrameTooLarge) -> Self
fn from(e: FrameTooLarge) -> Self
An oversized frame is malformed input, the same kind
BlockingFrameReader
reports for it.
Source§impl PartialEq for FrameTooLarge
impl PartialEq for FrameTooLarge
impl StructuralPartialEq for FrameTooLarge
Auto Trait Implementations§
impl Freeze for FrameTooLarge
impl RefUnwindSafe for FrameTooLarge
impl Send for FrameTooLarge
impl Sync for FrameTooLarge
impl Unpin for FrameTooLarge
impl UnsafeUnpin for FrameTooLarge
impl UnwindSafe for FrameTooLarge
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