Skip to main content

BorderRouter

Trait BorderRouter 

Source
pub trait BorderRouter {
Show 30 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 border_routing_is_multi_ail_detected(&self) -> bool; fn border_routing_prefix_table_init_iterator( &self, iter: &mut otBorderRoutingPrefixTableIterator, ); 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>; fn iter_next_border_routing_peer( &self, ot_iter: &mut otBorderRoutingPrefixTableIterator, ) -> Option<BorderRoutingPeer>; fn iter_next_border_routing_router( &self, ot_iter: &mut otBorderRoutingPrefixTableIterator, ) -> Option<BorderRoutingRouter>; fn iter_next_border_routing_prefix_table( &self, ot_iter: &mut otBorderRoutingPrefixTableIterator, ) -> Option<BorderRoutingPrefixTableEntry>; fn iter_next_border_routing_rdnss( &self, ot_iter: &mut otBorderRoutingPrefixTableIterator, ) -> Option<BorderRoutingRdnss>; // Provided methods fn border_routing_peer_get_iterator( &self, ) -> BorderRoutingPeerIterator<'_, Self> { ... } fn border_routing_router_get_iterator( &self, ) -> BorderRoutingRouterIterator<'_, Self> { ... } fn border_routing_prefix_table_get_iterator( &self, ) -> BorderRoutingPrefixTableIterator<'_, Self> { ... } fn border_routing_rdnss_get_iterator( &self, ) -> BorderRoutingRdnssIterator<'_, Self> { ... } 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>)

Functional equivalent of otsys::otBorderRoutingDhcp6PdSetRequestCallback (crate::otsys::otBorderRoutingDhcp6PdSetRequestCallback).

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 (crate::otsys::otPlatBorderRoutingProcessIcmp6Ra).

Source

fn border_routing_get_pd_processed_ra_info(&self) -> PdProcessedRaInfo

Functional equivalent of otsys::otBorderRoutingGetPdProcessedRaInfo (crate::otsys::otBorderRoutingGetPdProcessedRaInfo).

Source

fn border_routing_is_multi_ail_detected(&self) -> bool

Functional equivalent of otsys::otBorderRoutingIsMultiAilDetected (crate::otsys::otBorderRoutingIsMultiAilDetected).

Source

fn border_routing_prefix_table_init_iterator( &self, iter: &mut otBorderRoutingPrefixTableIterator, )

Functional equivalent of otsys::otBorderRoutingPrefixTableInitIterator (crate::otsys::otBorderRoutingPrefixTableInitIterator).

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 (crate::otsys::otBorderRouterGetNextOnMeshPrefix).

Source

fn iter_next_border_routing_peer( &self, ot_iter: &mut otBorderRoutingPrefixTableIterator, ) -> Option<BorderRoutingPeer>

Functional equivalent of otsys::otBorderRoutingGetNextPeerBrEntry (crate::otsys::otBorderRoutingGetNextPeerBrEntry).

Source

fn iter_next_border_routing_router( &self, ot_iter: &mut otBorderRoutingPrefixTableIterator, ) -> Option<BorderRoutingRouter>

Functional equivalent of otsys::otBorderRoutingGetNextRouterEntry (crate::otsys::otBorderRoutingGetNextRouterEntry).

Source

fn iter_next_border_routing_prefix_table( &self, ot_iter: &mut otBorderRoutingPrefixTableIterator, ) -> Option<BorderRoutingPrefixTableEntry>

Functional equivalent of otsys::otBorderRoutingGetNextPrefixTableEntry (crate::otsys::otBorderRoutingGetNextPrefixTableEntry).

Source

fn iter_next_border_routing_rdnss( &self, ot_iter: &mut otBorderRoutingPrefixTableIterator, ) -> Option<BorderRoutingRdnss>

Functional equivalent of otsys::otBorderRoutingGetNextRdnssAddrEntry (crate::otsys::otBorderRoutingGetNextRdnssAddrEntry).

Provided Methods§

Source

fn border_routing_peer_get_iterator( &self, ) -> BorderRoutingPeerIterator<'_, Self>

Get the border routing peer iterator instance.

Source

fn border_routing_router_get_iterator( &self, ) -> BorderRoutingRouterIterator<'_, Self>

Get the border routing router iterator instance.

Source

fn border_routing_prefix_table_get_iterator( &self, ) -> BorderRoutingPrefixTableIterator<'_, Self>

Get the border routing prefix table iterator instance.

Source

fn border_routing_rdnss_get_iterator( &self, ) -> BorderRoutingRdnssIterator<'_, Self>

Get the border routing rdnss iterator instance.

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§