pub struct AttError(pub u8);Expand description
An ATT error code, as the peer reports it.
Tuple Fields§
§0: u8Implementations§
Source§impl AttError
impl AttError
pub const INVALID_HANDLE: u8 = 0x01
pub const READ_NOT_PERMITTED: u8 = 0x02
pub const WRITE_NOT_PERMITTED: u8 = 0x03
pub const INSUFFICIENT_AUTHENTICATION: u8 = 0x05
pub const REQUEST_NOT_SUPPORTED: u8 = 0x06
pub const INVALID_OFFSET: u8 = 0x07
pub const INSUFFICIENT_AUTHORIZATION: u8 = 0x08
pub const ATTRIBUTE_NOT_FOUND: u8 = 0x0A
pub const ATTRIBUTE_NOT_LONG: u8 = 0x0B
pub const INVALID_ATTRIBUTE_VALUE_LENGTH: u8 = 0x0D
pub const UNLIKELY_ERROR: u8 = 0x0E
pub const INSUFFICIENT_ENCRYPTION: u8 = 0x0F
pub const INSUFFICIENT_RESOURCES: u8 = 0x11
Sourcepub fn is_end_of_discovery(self) -> bool
pub fn is_end_of_discovery(self) -> bool
ATTRIBUTE_NOT_FOUND ends a discovery loop rather than failing it —
it is how the peer says “no more”.
pub fn describe(self) -> &'static str
Trait Implementations§
impl Copy for AttError
impl Eq for AttError
impl StructuralPartialEq for AttError
Auto Trait Implementations§
impl Forget for AttError
impl Freeze for AttError
impl Move for AttError
impl RefUnwindSafe for AttError
impl Send for AttError
impl Sync for AttError
impl Unpin for AttError
impl UnsafeUnpin for AttError
impl UnwindSafe for AttError
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