pub enum Generic {
Start {
seg_n: u8,
total: u16,
fcs: u8,
data: Vec<u8>,
},
Ack,
Continuation {
index: u8,
data: Vec<u8>,
},
LinkOpen([u8; 16]),
LinkAck,
LinkClose(u8),
}Expand description
A Generic Provisioning PDU, as carried in PB-ADV.
Variants§
Start
The first segment of a provisioning PDU.
Fields
Ack
The transaction was received whole.
Continuation
A later segment.
LinkOpen([u8; 16])
Link Open, with the device’s UUID.
LinkAck
Link Ack.
LinkClose(u8)
Link Close, with the reason (0 success, 1 timeout, 2 fail).
Trait Implementations§
impl Eq for Generic
impl StructuralPartialEq for Generic
Auto Trait Implementations§
impl Freeze for Generic
impl RefUnwindSafe for Generic
impl Send for Generic
impl Sync for Generic
impl Unpin for Generic
impl UnsafeUnpin for Generic
impl UnwindSafe for Generic
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