pub enum FromGattError {
InvalidLength,
InvalidCharacter,
}
Expand description
Error type to signify an issue when converting from GATT bytes to a concrete type
Variants§
InvalidLength
Byte array’s length did not match what was expected for the converted type
InvalidCharacter
Attempt to encode as string failed due to an invalid character representation in the byte array
Trait Implementations§
Source§impl Clone for FromGattError
impl Clone for FromGattError
Source§fn clone(&self) -> FromGattError
fn clone(&self) -> FromGattError
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 FromGattError
impl Debug for FromGattError
Source§impl Format for FromGattError
impl Format for FromGattError
Source§impl PartialEq for FromGattError
impl PartialEq for FromGattError
impl Copy for FromGattError
impl Eq for FromGattError
impl StructuralPartialEq for FromGattError
Auto Trait Implementations§
impl Freeze for FromGattError
impl RefUnwindSafe for FromGattError
impl Send for FromGattError
impl Sync for FromGattError
impl Unpin for FromGattError
impl UnwindSafe for FromGattError
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