pub enum SetBytesError {
LengthOverflow,
}Expand description
An error that occurred during a call to Bytes::set
Variants§
LengthOverflow
The length of the given data would overflow a u32
Trait Implementations§
Source§impl Clone for SetBytesError
impl Clone for SetBytesError
Source§fn clone(&self) -> SetBytesError
fn clone(&self) -> SetBytesError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SetBytesError
impl Debug for SetBytesError
Source§impl Display for SetBytesError
impl Display for SetBytesError
Source§impl Error for SetBytesError
impl Error for SetBytesError
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 Ord for SetBytesError
impl Ord for SetBytesError
Source§fn cmp(&self, other: &SetBytesError) -> Ordering
fn cmp(&self, other: &SetBytesError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SetBytesError
impl PartialEq for SetBytesError
Source§impl PartialOrd for SetBytesError
impl PartialOrd for SetBytesError
impl Eq for SetBytesError
impl StructuralPartialEq for SetBytesError
Auto Trait Implementations§
impl Freeze for SetBytesError
impl RefUnwindSafe for SetBytesError
impl Send for SetBytesError
impl Sync for SetBytesError
impl Unpin for SetBytesError
impl UnwindSafe for SetBytesError
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