openthread::ot

Trait Dataset

Source
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

Required Methods§

Source

fn is_commissioned(&self) -> bool

Functional equivalent of otsys::otDatasetIsCommissioned.

Source

fn dataset_create_new_network(&self, dataset: &mut OperationalDataset) -> Result

Functional equivalent of otsys::otDatasetCreateNewNetwork.

Source

fn dataset_get_active(&self, dataset: &mut OperationalDataset) -> Result

Functional equivalent of otsys::otDatasetGetActive.

Source

fn dataset_set_active(&self, dataset: &OperationalDataset) -> Result

Functional equivalent of otsys::otDatasetSetActive.

Source

fn dataset_set_pending(&self, dataset: &OperationalDataset) -> Result

Functional equivalent of otsys::otDatasetSetPending.

Source

fn dataset_get_active_tlvs(&self) -> Result<OperationalDatasetTlvs>

Functional equivalent of otsys::otDatasetGetActiveTlvs.

Source

fn dataset_set_active_tlvs(&self, dataset: &OperationalDatasetTlvs) -> Result

Functional equivalent of otsys::otDatasetSetActiveTlvs.

Source

fn dataset_get_pending_tlvs(&self) -> Result<OperationalDatasetTlvs>

Functional equivalent of otsys::otDatasetGetPendingTlvs.

Source

fn dataset_set_pending_tlvs(&self, dataset: &OperationalDatasetTlvs) -> Result

Functional equivalent of otsys::otDatasetSetPendingTlvs.

Source

fn dataset_send_mgmt_pending_set<'a, F>( &self, dataset: OperationalDataset, dataset_tlvs: &[u8], f: F, ) -> Result
where F: FnOnce(Result) + 'a,

Functional equivalent of otsys::otDatasetSendMgmtPendingSet.

Provided Methods§

Source

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.

Implementors§