pub struct Connection { /* private fields */ }
Implementations§
Source§impl Connection
Authenticated virtual connection can bse used to send commands to device.
impl Connection
Authenticated virtual connection can bse used to send commands to device.
Sourcepub async fn read_request(
&mut self,
endpoint: u16,
cluster: u32,
attr: u32,
) -> Result<Message>
pub async fn read_request( &mut self, endpoint: u16, cluster: u32, attr: u32, ) -> Result<Message>
Read attribute from device and return parsed matter protocol response.
Sourcepub async fn read_request2(
&mut self,
endpoint: u16,
cluster: u32,
attr: u32,
) -> Result<TlvItemValue>
pub async fn read_request2( &mut self, endpoint: u16, cluster: u32, attr: u32, ) -> Result<TlvItemValue>
Read attribute from device and return tlv with attribute value.
Sourcepub async fn invoke_request(
&mut self,
endpoint: u16,
cluster: u32,
command: u32,
payload: &[u8],
) -> Result<Message>
pub async fn invoke_request( &mut self, endpoint: u16, cluster: u32, command: u32, payload: &[u8], ) -> Result<Message>
Invoke command
Sourcepub async fn invoke_request2(
&mut self,
endpoint: u16,
cluster: u32,
command: u32,
payload: &[u8],
) -> Result<TlvItemValue>
pub async fn invoke_request2( &mut self, endpoint: u16, cluster: u32, command: u32, payload: &[u8], ) -> Result<TlvItemValue>
Invoke command
pub async fn invoke_request_timed( &mut self, endpoint: u16, cluster: u32, command: u32, payload: &[u8], timeout: u16, ) -> Result<Message>
Auto Trait Implementations§
impl Freeze for Connection
impl !RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
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