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
Methods from the OpenThread “Border Router” Module.
Required Methods§
Sourcefn add_external_route(&self, route: &ExternalRouteConfig) -> Result
fn add_external_route(&self, route: &ExternalRouteConfig) -> Result
Functional equivalent of
otsys::otBorderRouterAddRoute
.
Sourcefn add_on_mesh_prefix(&self, route: &BorderRouterConfig) -> Result
fn add_on_mesh_prefix(&self, route: &BorderRouterConfig) -> Result
Functional equivalent of
otsys::otBorderRouterAddOnMeshPrefix
.
Sourcefn remove_external_route(&self, prefix: &Ip6Prefix) -> Result
fn remove_external_route(&self, prefix: &Ip6Prefix) -> Result
Functional equivalent of
otsys::otBorderRouterRemoveRoute
.
Sourcefn remove_on_mesh_prefix(&self, prefix: &Ip6Prefix) -> Result
fn remove_on_mesh_prefix(&self, prefix: &Ip6Prefix) -> Result
Functional equivalent of
otsys::otBorderRouterRemoveOnMeshPrefix
.
Sourcefn border_router_register(&self) -> Result
fn border_router_register(&self) -> Result
Functional equivalent of
otsys::otBorderRouterRegister
.
Sourcefn border_routing_init(&self, infra_if: u32, infra_is_running: bool) -> Result
fn border_routing_init(&self, infra_if: u32, infra_is_running: bool) -> Result
Functional equivalent of
otsys::otBorderRoutingInit
.
Sourcefn border_routing_set_enabled(&self, enabled: bool) -> Result
fn border_routing_set_enabled(&self, enabled: bool) -> Result
Functional equivalent of
otsys::otBorderRoutingSetEnabled
.
Sourcefn border_routing_dhcp6_pd_set_enabled(&self, enabled: bool)
fn border_routing_dhcp6_pd_set_enabled(&self, enabled: bool)
Functional equivalent of
otsys::otBorderRoutingDhcp6PdSetEnabled
.
Sourcefn border_routing_dhcp6_pd_get_state(&self) -> BorderRoutingDhcp6PdState
fn border_routing_dhcp6_pd_get_state(&self) -> BorderRoutingDhcp6PdState
Functional equivalent of
otsys::otBorderRoutingDhcp6PdGetState
.
Sourcefn border_routing_dhcp6_pd_set_request_fn<'a, F>(&'a self, f: Option<F>)where
F: FnMut(BorderRoutingDhcp6PdState) + 'a,
fn border_routing_dhcp6_pd_set_request_fn<'a, F>(&'a self, f: Option<F>)where
F: FnMut(BorderRoutingDhcp6PdState) + 'a,
Functional equivalent of
otsys::otBorderRoutingDhcp6PdSetRequestCallback
.
Sourcefn border_routing_dhcp6_pd_state_change_stream(
&self,
) -> BorderRoutingDhcp6PdStateChangedStream
fn border_routing_dhcp6_pd_state_change_stream( &self, ) -> BorderRoutingDhcp6PdStateChangedStream
Get the DHCPv6 PD state change stream
Sourcefn border_routing_get_pd_omr_prefix(
&self,
) -> Result<BorderRoutingPrefixTableEntry>
fn border_routing_get_pd_omr_prefix( &self, ) -> Result<BorderRoutingPrefixTableEntry>
Functional equivalent of
otsys::otBorderRoutingGetPdOmrPrefix
.
Sourcefn border_routing_get_omr_prefix(&self) -> Result<Ip6Prefix>
fn border_routing_get_omr_prefix(&self) -> Result<Ip6Prefix>
Functional equivalent of
otsys::otBorderRoutingGetOmrPrefix
.
Sourcefn border_routing_get_on_link_prefix(&self) -> Result<Ip6Prefix>
fn border_routing_get_on_link_prefix(&self) -> Result<Ip6Prefix>
Functional equivalent of
otsys::otBorderRoutingGetOnLinkPrefix
.
Sourcefn border_routing_process_icmp6_ra(
&self,
message: &[u8],
) -> Result<(), WrongSize>
fn border_routing_process_icmp6_ra( &self, message: &[u8], ) -> Result<(), WrongSize>
Functional equivalent of
otsys::otPlatBorderRoutingProcessIcmp6Ra
.
Sourcefn border_routing_get_pd_processed_ra_info(&self) -> PdProcessedRaInfo
fn border_routing_get_pd_processed_ra_info(&self) -> PdProcessedRaInfo
Functional equivalent of
otsys::otBorderRoutingGetPdProcessedRaInfo
.
Sourcefn iter_next_local_external_route(
&self,
ot_iter: &mut otNetworkDataIterator,
) -> Option<ExternalRouteConfig>
fn iter_next_local_external_route( &self, ot_iter: &mut otNetworkDataIterator, ) -> Option<ExternalRouteConfig>
Functional equivalent of
otsys::otBorderRouterGetNextRoute
.
Sourcefn iter_next_local_on_mesh_prefix(
&self,
ot_iter: &mut otNetworkDataIterator,
) -> Option<BorderRouterConfig>
fn iter_next_local_on_mesh_prefix( &self, ot_iter: &mut otNetworkDataIterator, ) -> Option<BorderRouterConfig>
Functional equivalent of
otsys::otBorderRouterGetNextOnMeshPrefix
.
Provided Methods§
Sourcefn iter_local_external_routes(&self) -> LocalExternalRouteIterator<'_, Self> ⓘ
fn iter_local_external_routes(&self) -> LocalExternalRouteIterator<'_, Self> ⓘ
Returns an iterator for iterating over external routes.
Sourcefn iter_local_on_mesh_prefixes(&self) -> LocalOnMeshPrefixIterator<'_, Self> ⓘ
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.