pub struct InvalidLengthError;
Expand description
An error returned when a byte slice has an invalid length for a Bluetooth UUID.
A valid slice must be 2, 4, or 16 bytes long.
Trait Implementations§
Source§impl Clone for InvalidLengthError
impl Clone for InvalidLengthError
Source§fn clone(&self) -> InvalidLengthError
fn clone(&self) -> InvalidLengthError
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 InvalidLengthError
impl Debug for InvalidLengthError
Source§impl Display for InvalidLengthError
impl Display for InvalidLengthError
Source§impl Error for InvalidLengthError
impl Error for InvalidLengthError
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 Format for InvalidLengthError
impl Format for InvalidLengthError
Source§impl From<TryFromSliceError> for InvalidLengthError
impl From<TryFromSliceError> for InvalidLengthError
Source§fn from(_: TryFromSliceError) -> InvalidLengthError
fn from(_: TryFromSliceError) -> InvalidLengthError
Converts to this type from the input type.
Source§impl Hash for InvalidLengthError
impl Hash for InvalidLengthError
Source§impl Ord for InvalidLengthError
impl Ord for InvalidLengthError
Source§fn cmp(&self, other: &InvalidLengthError) -> Ordering
fn cmp(&self, other: &InvalidLengthError) -> 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 InvalidLengthError
impl PartialEq for InvalidLengthError
Source§impl PartialOrd for InvalidLengthError
impl PartialOrd for InvalidLengthError
impl Copy for InvalidLengthError
impl Eq for InvalidLengthError
impl StructuralPartialEq for InvalidLengthError
Auto Trait Implementations§
impl Freeze for InvalidLengthError
impl RefUnwindSafe for InvalidLengthError
impl Send for InvalidLengthError
impl Sync for InvalidLengthError
impl Unpin for InvalidLengthError
impl UnwindSafe for InvalidLengthError
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