pub trait BackboneRouter {
// Required methods
fn set_backbone_router_enabled(&self, enable: bool);
fn multicast_listener_add(&self, addr: &Ip6Address, timeout: u32) -> Result;
fn multicast_listener_clear(&self);
fn multicast_listener_get_next(
&self,
listener_iter: &mut otBackboneRouterMulticastListenerIterator,
) -> Option<BackboneRouterMulticastListenerInfo>;
fn set_multicast_listener_callback<'a, F>(&'a self, f: Option<F>)
where F: FnMut(BackboneRouterMulticastListenerEvent, &Ip6Address) + 'a;
fn config_next_multicast_listener_registration_response(&self, status: u8);
// Provided method
fn iter_multicaster_listeners(&self) -> MulticastListenerIterator<'_, Self> ⓘ { ... }
}
Expand description
Methods from the OpenThread “Backbone Router” Module. Currently only multicast routing related methods are added.
Required Methods§
Sourcefn set_backbone_router_enabled(&self, enable: bool)
fn set_backbone_router_enabled(&self, enable: bool)
Functional equilvanet of
otsys::otBackboneRouterSetEnabled
.
Sourcefn multicast_listener_add(&self, addr: &Ip6Address, timeout: u32) -> Result
fn multicast_listener_add(&self, addr: &Ip6Address, timeout: u32) -> Result
Functional equivalent of
otsys::otBackboneRouterMulticastListenerAdd
.
Sourcefn multicast_listener_clear(&self)
fn multicast_listener_clear(&self)
Functional equivalent of
otsys::otBackboneRouterMulticastListenerClear
.
Sourcefn multicast_listener_get_next(
&self,
listener_iter: &mut otBackboneRouterMulticastListenerIterator,
) -> Option<BackboneRouterMulticastListenerInfo>
fn multicast_listener_get_next( &self, listener_iter: &mut otBackboneRouterMulticastListenerIterator, ) -> Option<BackboneRouterMulticastListenerInfo>
Functional equivalent of
otsys::otBackboneRouterMulticastListenerGetNext
.
Sourcefn set_multicast_listener_callback<'a, F>(&'a self, f: Option<F>)
fn set_multicast_listener_callback<'a, F>(&'a self, f: Option<F>)
Functional equivalent of
otsys::otBackboneRouterSetMulticastListenerCallback
.
Sourcefn config_next_multicast_listener_registration_response(&self, status: u8)
fn config_next_multicast_listener_registration_response(&self, status: u8)
Functional equivalent of
otsys::otBackboneRouterConfigNextMulticastListenerRegistrationResponse
.
Provided Methods§
Sourcefn iter_multicaster_listeners(&self) -> MulticastListenerIterator<'_, Self> ⓘ
fn iter_multicaster_listeners(&self) -> MulticastListenerIterator<'_, Self> ⓘ
Returns an iterator for iterating over multicast listeners.
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.