openthread::ot

Trait 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.

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§