pub struct BoundedBytesError {
pub maximum: usize,
pub actual: usize,
}Expand description
Failure returned when a value exceeds a BoundedBytes allocation limit.
Fields§
§maximum: usize§actual: usizeTrait Implementations§
Source§impl Clone for BoundedBytesError
impl Clone for BoundedBytesError
Source§fn clone(&self) -> BoundedBytesError
fn clone(&self) -> BoundedBytesError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BoundedBytesError
Source§impl Debug for BoundedBytesError
impl Debug for BoundedBytesError
Source§impl Display for BoundedBytesError
impl Display for BoundedBytesError
impl Eq for BoundedBytesError
Source§impl Error for BoundedBytesError
impl Error for BoundedBytesError
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 BoundedBytesError
impl PartialEq for BoundedBytesError
impl StructuralPartialEq for BoundedBytesError
Auto Trait Implementations§
impl Freeze for BoundedBytesError
impl RefUnwindSafe for BoundedBytesError
impl Send for BoundedBytesError
impl Sync for BoundedBytesError
impl Unpin for BoundedBytesError
impl UnsafeUnpin for BoundedBytesError
impl UnwindSafe for BoundedBytesError
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