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
Methods from the OpenThread “Joiner” Module.
Required Methods§
Sourcefn 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_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
.
Sourcefn joiner_stop(&self)
fn joiner_stop(&self)
Functional equivalent of
otsys::otJoinerStop
.
Sourcefn joiner_get_state(&self) -> JoinerState
fn joiner_get_state(&self) -> JoinerState
Functional equivalent of
otsys::otJoinerGetState
.
Provided Methods§
Sourcefn 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> ⓘ
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.