pub enum Response {
Show 13 variants
Error {
opcode: u8,
handle: u16,
error: AttError,
},
Mtu(u16),
Services(Vec<Service>),
Characteristics(Vec<Characteristic>),
Includes(Vec<Include>),
Descriptors(Vec<Descriptor>),
Value(Vec<u8>),
WriteComplete,
Notification {
handle: u16,
value: Vec<u8>,
},
Indication {
handle: u16,
value: Vec<u8>,
},
PrepareWriteComplete,
PeerRequest {
opcode: u8,
body: Vec<u8>,
},
Unknown(u8),
}Expand description
What came back.
Variants§
Error
The peer refused. opcode is the request it refused.
Mtu(u16)
Services(Vec<Service>)
Characteristics(Vec<Characteristic>)
Includes(Vec<Include>)
Descriptors(Vec<Descriptor>)
Value(Vec<u8>)
WriteComplete
Notification
Unsolicited: a subscription delivering a value.
Indication
Unsolicited, and must be confirmed.
PrepareWriteComplete
One fragment of a long write was queued by the peer.
PeerRequest
The peer is making a request of us, which is not a reply to anything.
Unknown(u8)
An opcode this client does not implement.
Trait Implementations§
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Forget for Response
impl Freeze for Response
impl Move for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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