pub trait BorderRouter {
Show 18 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_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_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

Object Safety§

This trait is not object safe.

Implementors§