pub trait Dataset {
// Required methods
fn is_commissioned(&self) -> bool;
fn dataset_create_new_network(
&self,
dataset: &mut OperationalDataset,
) -> Result;
fn dataset_get_active(&self, dataset: &mut OperationalDataset) -> Result;
fn dataset_set_active(&self, dataset: &OperationalDataset) -> Result;
fn dataset_set_pending(&self, dataset: &OperationalDataset) -> Result;
fn dataset_get_active_tlvs(&self) -> Result<OperationalDatasetTlvs>;
fn dataset_set_active_tlvs(
&self,
dataset: &OperationalDatasetTlvs,
) -> Result;
fn dataset_get_pending_tlvs(&self) -> Result<OperationalDatasetTlvs>;
fn dataset_set_pending_tlvs(
&self,
dataset: &OperationalDatasetTlvs,
) -> Result;
fn dataset_send_mgmt_pending_set<'a, F>(
&self,
dataset: OperationalDataset,
dataset_tlvs: &[u8],
f: F,
) -> Result
where F: FnOnce(Result) + 'a;
// Provided method
fn dataset_send_mgmt_pending_set_async(
&self,
dataset: OperationalDataset,
dataset_tlvs: &[u8],
) -> Receiver<Result> ⓘ { ... }
}
Expand description
Methods from the OpenThread “OperationalDataset” Module.
Required Methods§
Sourcefn is_commissioned(&self) -> bool
fn is_commissioned(&self) -> bool
Functional equivalent of
otsys::otDatasetIsCommissioned
.
Sourcefn dataset_create_new_network(&self, dataset: &mut OperationalDataset) -> Result
fn dataset_create_new_network(&self, dataset: &mut OperationalDataset) -> Result
Functional equivalent of
otsys::otDatasetCreateNewNetwork
.
Sourcefn dataset_get_active(&self, dataset: &mut OperationalDataset) -> Result
fn dataset_get_active(&self, dataset: &mut OperationalDataset) -> Result
Functional equivalent of otsys::otDatasetGetActive
.
Sourcefn dataset_set_active(&self, dataset: &OperationalDataset) -> Result
fn dataset_set_active(&self, dataset: &OperationalDataset) -> Result
Functional equivalent of otsys::otDatasetSetActive
.
Sourcefn dataset_set_pending(&self, dataset: &OperationalDataset) -> Result
fn dataset_set_pending(&self, dataset: &OperationalDataset) -> Result
Functional equivalent of otsys::otDatasetSetPending
.
Sourcefn dataset_get_active_tlvs(&self) -> Result<OperationalDatasetTlvs>
fn dataset_get_active_tlvs(&self) -> Result<OperationalDatasetTlvs>
Functional equivalent of otsys::otDatasetGetActiveTlvs
.
Sourcefn dataset_set_active_tlvs(&self, dataset: &OperationalDatasetTlvs) -> Result
fn dataset_set_active_tlvs(&self, dataset: &OperationalDatasetTlvs) -> Result
Functional equivalent of otsys::otDatasetSetActiveTlvs
.
Sourcefn dataset_get_pending_tlvs(&self) -> Result<OperationalDatasetTlvs>
fn dataset_get_pending_tlvs(&self) -> Result<OperationalDatasetTlvs>
Functional equivalent of otsys::otDatasetGetPendingTlvs
.
Sourcefn dataset_set_pending_tlvs(&self, dataset: &OperationalDatasetTlvs) -> Result
fn dataset_set_pending_tlvs(&self, dataset: &OperationalDatasetTlvs) -> Result
Functional equivalent of otsys::otDatasetSetPendingTlvs
.
Sourcefn dataset_send_mgmt_pending_set<'a, F>(
&self,
dataset: OperationalDataset,
dataset_tlvs: &[u8],
f: F,
) -> Result
fn dataset_send_mgmt_pending_set<'a, F>( &self, dataset: OperationalDataset, dataset_tlvs: &[u8], f: F, ) -> Result
Functional equivalent of otsys::otDatasetSendMgmtPendingSet
.
Provided Methods§
Sourcefn dataset_send_mgmt_pending_set_async(
&self,
dataset: OperationalDataset,
dataset_tlvs: &[u8],
) -> Receiver<Result> ⓘ
fn dataset_send_mgmt_pending_set_async( &self, dataset: OperationalDataset, dataset_tlvs: &[u8], ) -> Receiver<Result> ⓘ
Async version of [dataset_send_mgmt_pending_set
].
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.