pub struct TooLarge {
pub limit: usize,
pub asked: usize,
}Expand description
A frame, line or input larger than its reader’s limit, refused before the reader’s buffer grew past it.
Fields§
§limit: usizeThe most bytes the reader takes.
asked: usizeThe bytes it held when it refused: past limit, and the whole size
only when the input ended there.
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 Forget for TooLarge
impl Freeze for TooLarge
impl Move 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