pub struct NetworkCommissioningClientView<'a> { /* private fields */ }Expand description
Per-exchange view onto the NetworkCommissioning cluster’s client operations. Returned by NetworkCommissioningClient::network_commissioning. Each method consumes the view (and therefore the underlying crate::transport::exchange::Exchange) — one exchange is one IM transaction.
Implementations§
Source§impl<'a> NetworkCommissioningClientView<'a>
impl<'a> NetworkCommissioningClientView<'a>
pub async fn scan_networks<F>(
self,
endpoint: u16,
request: F,
) -> Result<ScanNetworksResponseHandle<'a>, Error>where
F: FnMut(ScanNetworksRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>>) -> Result<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>, Error>,
pub async fn add_or_update_wi_fi_network<F>(
self,
endpoint: u16,
request: F,
) -> Result<NetworkConfigResponseHandle<'a>, Error>where
F: FnMut(AddOrUpdateWiFiNetworkRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>>) -> Result<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>, Error>,
pub async fn add_or_update_thread_network<F>(
self,
endpoint: u16,
request: F,
) -> Result<NetworkConfigResponseHandle<'a>, Error>where
F: FnMut(AddOrUpdateThreadNetworkRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>>) -> Result<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>, Error>,
pub async fn remove_network<F>(
self,
endpoint: u16,
request: F,
) -> Result<NetworkConfigResponseHandle<'a>, Error>where
F: FnMut(RemoveNetworkRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>>) -> Result<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>, Error>,
pub async fn connect_network<F>(
self,
endpoint: u16,
request: F,
) -> Result<ConnectNetworkResponseHandle<'a>, Error>where
F: FnMut(ConnectNetworkRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>>) -> Result<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>, Error>,
pub async fn reorder_network<F>(
self,
endpoint: u16,
request: F,
) -> Result<NetworkConfigResponseHandle<'a>, Error>where
F: FnMut(ReorderNetworkRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>>) -> Result<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>, Error>,
pub async fn max_networks_read(self, endpoint: u16) -> Result<u8, Error>
Sourcepub async fn networks_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<TLVContainer<'_, NetworkInfoStruct<'_>, ArrayContainer>, Error>) -> R,
) -> Result<R, Error>
pub async fn networks_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<TLVContainer<'_, NetworkInfoStruct<'_>, ArrayContainer>, Error>) -> R, ) -> Result<R, Error>
Read a non-scalar attribute (string, octet string, struct or list) whose value borrows the response buffer. Decodes the value and passes Result<Value, Error> to f while the borrow is live, returning the owned R that f produces (copy out what you need, e.g. |v| v.map(|s| s.to_string())). A non-served optional attribute surfaces as Err to f.
pub async fn scan_max_time_seconds_read( self, endpoint: u16, ) -> Result<u8, Error>
pub async fn connect_max_time_seconds_read( self, endpoint: u16, ) -> Result<u8, Error>
pub async fn interface_enabled_read(self, endpoint: u16) -> Result<bool, Error>
pub async fn last_networking_status_read( self, endpoint: u16, ) -> Result<Maybe<NetworkCommissioningStatusEnum, AsNullable>, Error>
Sourcepub async fn last_network_id_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<Maybe<Octets<'_>, AsNullable>, Error>) -> R,
) -> Result<R, Error>
pub async fn last_network_id_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<Maybe<Octets<'_>, AsNullable>, Error>) -> R, ) -> Result<R, Error>
Read a non-scalar attribute (string, octet string, struct or list) whose value borrows the response buffer. Decodes the value and passes Result<Value, Error> to f while the borrow is live, returning the owned R that f produces (copy out what you need, e.g. |v| v.map(|s| s.to_string())). A non-served optional attribute surfaces as Err to f.
pub async fn last_connect_error_value_read( self, endpoint: u16, ) -> Result<Maybe<i32, AsNullable>, Error>
Sourcepub async fn supported_wi_fi_bands_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<TLVContainer<'_, WiFiBandEnum, ArrayContainer>, Error>) -> R,
) -> Result<R, Error>
pub async fn supported_wi_fi_bands_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<TLVContainer<'_, WiFiBandEnum, ArrayContainer>, Error>) -> R, ) -> Result<R, Error>
Read a non-scalar attribute (string, octet string, struct or list) whose value borrows the response buffer. Decodes the value and passes Result<Value, Error> to f while the borrow is live, returning the owned R that f produces (copy out what you need, e.g. |v| v.map(|s| s.to_string())). A non-served optional attribute surfaces as Err to f.
pub async fn supported_thread_features_read( self, endpoint: u16, ) -> Result<ThreadCapabilitiesBitmap, Error>
pub async fn thread_version_read(self, endpoint: u16) -> Result<u16, Error>
Sourcepub async fn generated_command_list_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<TLVContainer<'_, u32, ArrayContainer>, Error>) -> R,
) -> Result<R, Error>
pub async fn generated_command_list_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<TLVContainer<'_, u32, ArrayContainer>, Error>) -> R, ) -> Result<R, Error>
Read a non-scalar attribute (string, octet string, struct or list) whose value borrows the response buffer. Decodes the value and passes Result<Value, Error> to f while the borrow is live, returning the owned R that f produces (copy out what you need, e.g. |v| v.map(|s| s.to_string())). A non-served optional attribute surfaces as Err to f.
Sourcepub async fn accepted_command_list_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<TLVContainer<'_, u32, ArrayContainer>, Error>) -> R,
) -> Result<R, Error>
pub async fn accepted_command_list_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<TLVContainer<'_, u32, ArrayContainer>, Error>) -> R, ) -> Result<R, Error>
Read a non-scalar attribute (string, octet string, struct or list) whose value borrows the response buffer. Decodes the value and passes Result<Value, Error> to f while the borrow is live, returning the owned R that f produces (copy out what you need, e.g. |v| v.map(|s| s.to_string())). A non-served optional attribute surfaces as Err to f.
Sourcepub async fn attribute_list_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<TLVContainer<'_, u32, ArrayContainer>, Error>) -> R,
) -> Result<R, Error>
pub async fn attribute_list_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<TLVContainer<'_, u32, ArrayContainer>, Error>) -> R, ) -> Result<R, Error>
Read a non-scalar attribute (string, octet string, struct or list) whose value borrows the response buffer. Decodes the value and passes Result<Value, Error> to f while the borrow is live, returning the owned R that f produces (copy out what you need, e.g. |v| v.map(|s| s.to_string())). A non-served optional attribute surfaces as Err to f.
pub async fn feature_map_read(self, endpoint: u16) -> Result<u32, Error>
pub async fn cluster_revision_read(self, endpoint: u16) -> Result<u16, Error>
pub async fn interface_enabled_write( self, endpoint: u16, value: bool, ) -> Result<(), Error>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for NetworkCommissioningClientView<'a>
impl<'a> !Send for NetworkCommissioningClientView<'a>
impl<'a> !Sync for NetworkCommissioningClientView<'a>
impl<'a> !UnwindSafe for NetworkCommissioningClientView<'a>
impl<'a> Freeze for NetworkCommissioningClientView<'a>
impl<'a> Unpin for NetworkCommissioningClientView<'a>
impl<'a> UnsafeUnpin for NetworkCommissioningClientView<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more