openthread::ot

Trait BackboneRouter

Source
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§

Provided Methods§

Source

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.

Implementors§