pub trait Trel {
// Required methods
fn trel_set_enabled(&self, enabled: bool);
fn trel_is_enabled(&self) -> bool;
fn trel_get_counters(&self) -> Option<&TrelCounters>;
fn trel_reset_counters(&self);
fn trel_get_number_of_peers(&self) -> u16;
}
Expand description
Methods from the OpenThread TREL Module.
Required Methods§
Sourcefn trel_set_enabled(&self, enabled: bool)
fn trel_set_enabled(&self, enabled: bool)
Enables or disables TREL operation.
Sourcefn trel_is_enabled(&self) -> bool
fn trel_is_enabled(&self) -> bool
Returns true if TREL is enabled.
Sourcefn trel_get_counters(&self) -> Option<&TrelCounters>
fn trel_get_counters(&self) -> Option<&TrelCounters>
Return all the TREL counters
Sourcefn trel_reset_counters(&self)
fn trel_reset_counters(&self)
Reset TREL counters
Sourcefn trel_get_number_of_peers(&self) -> u16
fn trel_get_number_of_peers(&self) -> u16
Return the count of TREL peer