Enum tl::errors::SetBytesError
source · 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 copy 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)>
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§fn eq(&self, other: &SetBytesError) -> bool
fn eq(&self, other: &SetBytesError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SetBytesError
impl PartialOrd for SetBytesError
source§fn partial_cmp(&self, other: &SetBytesError) -> Option<Ordering>
fn partial_cmp(&self, other: &SetBytesError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for SetBytesError
impl StructuralPartialEq for SetBytesError
Auto Trait Implementations§
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