openthread::ot

Trait BorderRouter

Source
pub trait BorderRouter {
Show 20 methods // Required methods fn add_external_route(&self, route: &ExternalRouteConfig) -> Result; fn add_on_mesh_prefix(&self, route: &BorderRouterConfig) -> Result; fn remove_external_route(&self, prefix: &Ip6Prefix) -> Result; fn remove_on_mesh_prefix(&self, prefix: &Ip6Prefix) -> Result; fn border_router_register(&self) -> Result; fn border_routing_init( &self, infra_if: u32, infra_is_running: bool, ) -> Result; fn border_routing_set_enabled(&self, enabled: bool) -> Result; fn border_routing_dhcp6_pd_set_enabled(&self, enabled: bool); fn border_routing_dhcp6_pd_get_state(&self) -> BorderRoutingDhcp6PdState; fn border_routing_dhcp6_pd_set_request_fn<'a, F>(&'a self, f: Option<F>) where F: FnMut(BorderRoutingDhcp6PdState) + 'a; fn border_routing_dhcp6_pd_state_change_stream( &self, ) -> BorderRoutingDhcp6PdStateChangedStream; fn border_routing_get_pd_omr_prefix( &self, ) -> Result<BorderRoutingPrefixTableEntry>; fn border_routing_get_omr_prefix(&self) -> Result<Ip6Prefix>; fn border_routing_get_on_link_prefix(&self) -> Result<Ip6Prefix>; fn border_routing_process_icmp6_ra( &self, message: &[u8], ) -> Result<(), WrongSize>; fn border_routing_get_pd_processed_ra_info(&self) -> PdProcessedRaInfo; fn iter_next_local_external_route( &self, ot_iter: &mut otNetworkDataIterator, ) -> Option<ExternalRouteConfig>; fn iter_next_local_on_mesh_prefix( &self, ot_iter: &mut otNetworkDataIterator, ) -> Option<BorderRouterConfig>; // Provided methods fn iter_local_external_routes(&self) -> LocalExternalRouteIterator<'_, Self> { ... } fn iter_local_on_mesh_prefixes(&self) -> LocalOnMeshPrefixIterator<'_, Self> { ... }
}
Expand description

Required Methods§

Source

fn add_external_route(&self, route: &ExternalRouteConfig) -> Result

Functional equivalent of otsys::otBorderRouterAddRoute.

Source

fn add_on_mesh_prefix(&self, route: &BorderRouterConfig) -> Result

Functional equivalent of otsys::otBorderRouterAddOnMeshPrefix.

Source

fn remove_external_route(&self, prefix: &Ip6Prefix) -> Result

Functional equivalent of otsys::otBorderRouterRemoveRoute.

Source

fn remove_on_mesh_prefix(&self, prefix: &Ip6Prefix) -> Result

Functional equivalent of otsys::otBorderRouterRemoveOnMeshPrefix.

Source

fn border_router_register(&self) -> Result

Functional equivalent of otsys::otBorderRouterRegister.

Source

fn border_routing_init(&self, infra_if: u32, infra_is_running: bool) -> Result

Functional equivalent of otsys::otBorderRoutingInit.

Source

fn border_routing_set_enabled(&self, enabled: bool) -> Result

Functional equivalent of otsys::otBorderRoutingSetEnabled.

Source

fn border_routing_dhcp6_pd_set_enabled(&self, enabled: bool)

Functional equivalent of otsys::otBorderRoutingDhcp6PdSetEnabled.

Source

fn border_routing_dhcp6_pd_get_state(&self) -> BorderRoutingDhcp6PdState

Functional equivalent of otsys::otBorderRoutingDhcp6PdGetState.

Source

fn border_routing_dhcp6_pd_set_request_fn<'a, F>(&'a self, f: Option<F>)

Source

fn border_routing_dhcp6_pd_state_change_stream( &self, ) -> BorderRoutingDhcp6PdStateChangedStream

Get the DHCPv6 PD state change stream

Source

fn border_routing_get_pd_omr_prefix( &self, ) -> Result<BorderRoutingPrefixTableEntry>

Functional equivalent of otsys::otBorderRoutingGetPdOmrPrefix.

Source

fn border_routing_get_omr_prefix(&self) -> Result<Ip6Prefix>

Functional equivalent of otsys::otBorderRoutingGetOmrPrefix.

Functional equivalent of otsys::otBorderRoutingGetOnLinkPrefix.

Source

fn border_routing_process_icmp6_ra( &self, message: &[u8], ) -> Result<(), WrongSize>

Functional equivalent of otsys::otPlatBorderRoutingProcessIcmp6Ra.

Source

fn border_routing_get_pd_processed_ra_info(&self) -> PdProcessedRaInfo

Source

fn iter_next_local_external_route( &self, ot_iter: &mut otNetworkDataIterator, ) -> Option<ExternalRouteConfig>

Functional equivalent of otsys::otBorderRouterGetNextRoute.

Source

fn iter_next_local_on_mesh_prefix( &self, ot_iter: &mut otNetworkDataIterator, ) -> Option<BorderRouterConfig>

Functional equivalent of otsys::otBorderRouterGetNextOnMeshPrefix.

Provided Methods§

Source

fn iter_local_external_routes(&self) -> LocalExternalRouteIterator<'_, Self>

Returns an iterator for iterating over external routes.

Source

fn iter_local_on_mesh_prefixes(&self) -> LocalOnMeshPrefixIterator<'_, Self>

Returns an iterator for iterating over on-mesh prefixes

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§