pub struct Device { /* private fields */ }Expand description
The device’s side, so the gateway can be provisioned into a network (and for testing the provisioner).
Implementations§
Source§impl Device
impl Device
Sourcepub fn new(caps: Capabilities, static_oob: Option<Key>) -> Self
pub fn new(caps: Capabilities, static_oob: Option<Key>) -> Self
A device with these capabilities (and its static OOB value, if it has one).
Sourcepub fn enter_number(&mut self, n: u32) -> Option<Vec<u8>>
pub fn enter_number(&mut self, n: u32) -> Option<Vec<u8>>
Input OOB: the number the provisioner showed, typed into the device.
Sourcepub fn public_key(&self) -> Vec<u8> ⓘ
pub fn public_key(&self) -> Vec<u8> ⓘ
The device’s public key PDU (sent after the provisioner’s when the device shows an Output OOB number).
Auto Trait Implementations§
impl Forget for Device
impl Freeze for Device
impl Move for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnsafeUnpin for Device
impl UnwindSafe for Device
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