pub struct Controller { /* private fields */ }
Implementations§
Source§impl Controller
impl Controller
pub fn new( certmanager: &Arc<dyn CertManager>, transport: &Arc<Transport>, fabric_id: u64, ) -> Result<Arc<Self>>
Sourcepub async fn commission(
&self,
connection: &Arc<Connection>,
pin: u32,
node_id: u64,
controller_id: u64,
) -> Result<Connection>
pub async fn commission( &self, connection: &Arc<Connection>, pin: u32, node_id: u64, controller_id: u64, ) -> Result<Connection>
commission device
- authenticate using pin
- push CA certificate to device
- sign device’s certificate
- set controller id - user which can control device
- return authenticated connection which can be used to send additional commands
Sourcepub async fn auth_sigma(
&self,
connection: &Arc<Connection>,
node_id: u64,
controller_id: u64,
) -> Result<Connection>
pub async fn auth_sigma( &self, connection: &Arc<Connection>, node_id: u64, controller_id: u64, ) -> Result<Connection>
create authenticated connection to control device
Auto Trait Implementations§
impl Freeze for Controller
impl !RefUnwindSafe for Controller
impl Send for Controller
impl Sync for Controller
impl Unpin for Controller
impl !UnwindSafe for Controller
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