pub struct TooBigError {
pub size: usize,
pub max: usize,
}Expand description
Error returned when attempting to allocate a buffer that is too big.
This is specifically used in OwnedBinaryPayload when you try to allocate
a message larger than 232 bytes.
Fields§
§size: usize§max: usizeTrait Implementations§
Source§impl Debug for TooBigError
impl Debug for TooBigError
Source§impl Display for TooBigError
impl Display for TooBigError
Source§impl Error for TooBigError
impl Error for TooBigError
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 PartialEq for TooBigError
impl PartialEq for TooBigError
Source§fn eq(&self, other: &TooBigError) -> bool
fn eq(&self, other: &TooBigError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TooBigError
Auto Trait Implementations§
impl Freeze for TooBigError
impl RefUnwindSafe for TooBigError
impl Send for TooBigError
impl Sync for TooBigError
impl Unpin for TooBigError
impl UnsafeUnpin for TooBigError
impl UnwindSafe for TooBigError
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