Trait openthread::ot::Joiner

source ·
pub trait Joiner {
    // Required methods
    fn joiner_start<'a, F: FnOnce(Result) + 'a>(
        &self,
        pskd: &str,
        provisioning_url: Option<&str>,
        vendor_name: Option<&str>,
        vendor_model: Option<&str>,
        vendor_sw_version: Option<&str>,
        vendor_data: Option<&str>,
        callback: F
    ) -> Result;
    fn joiner_stop(&self);
    fn joiner_get_state(&self) -> JoinerState;

    // Provided method
    fn joiner_start_async(
        &self,
        pskd: &str,
        provisioning_url: Option<&str>,
        vendor_name: Option<&str>,
        vendor_model: Option<&str>,
        vendor_sw_version: Option<&str>,
        vendor_data: Option<&str>
    ) -> Receiver<Result>  { ... }
}
Expand description

Required Methods§

source

fn joiner_start<'a, F: FnOnce(Result) + 'a>( &self, pskd: &str, provisioning_url: Option<&str>, vendor_name: Option<&str>, vendor_model: Option<&str>, vendor_sw_version: Option<&str>, vendor_data: Option<&str>, callback: F ) -> Result

Functional equivalent of otsys::otJoinerStart.

source

fn joiner_stop(&self)

Functional equivalent of otsys::otJoinerStop.

source

fn joiner_get_state(&self) -> JoinerState

Functional equivalent of otsys::otJoinerGetState.

Provided Methods§

source

fn joiner_start_async( &self, pskd: &str, provisioning_url: Option<&str>, vendor_name: Option<&str>, vendor_model: Option<&str>, vendor_sw_version: Option<&str>, vendor_data: Option<&str> ) -> Receiver<Result>

Similar to [joiner_start()], but as an async method.

Note that the current implementation of this method will start the joining process immediately, rather than lazily.

Object Safety§

This trait is not object safe.

Implementors§