pub struct DeviceRouteProxy { /* private fields */ }
Implementations§
Source§impl DeviceRouteProxy
impl DeviceRouteProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.lowpan.experimental/DeviceRoute.
Sourcepub fn take_event_stream(&self) -> DeviceRouteEventStream
pub fn take_event_stream(&self) -> DeviceRouteEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn register_on_mesh_prefix(
&self,
prefix: &OnMeshPrefix,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn register_on_mesh_prefix( &self, prefix: &OnMeshPrefix, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Registers an on-mesh prefix to be advertised on the current network.
Subsequent calls with the same value for the subnet
field will
update the properties associated with that on-mesh prefix.
These changes persist like adding an IP address would, and will stick around until explicitly removed or the interface component is reset/restarted.
If the given OnMeshPrefix
structure is invalid for some reason
(missing required fields, invalid values, etc), the channel will be
closed with the epitaph ZX_ERR_INVALID_ARGS
.
If registering a new on-mesh prefix and the maximum number of
on-mesh prefixes has already been registered, this channel will
be closed with the epitaph ZX_ERR_NO_RESOURCES
.
Sourcepub fn unregister_on_mesh_prefix(
&self,
subnet: &Ipv6AddressWithPrefix,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn unregister_on_mesh_prefix( &self, subnet: &Ipv6AddressWithPrefix, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Unregisters any on-mesh prefix that was previously registered with
RegisterOnMeshPrefix
. It returns once the on-mesh prefix has
been removed locally.
If the given mesh prefix was not previously registered, no action is taken.
Sourcepub fn register_external_route(
&self,
external_route: &ExternalRoute,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn register_external_route( &self, external_route: &ExternalRoute, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Registers an external route to be advertised on the current network.
Subsequent calls with the same value for the subnet
field will
update the properties associated with that route.
These changes persist like adding an IP address would, and will stick around until explicitly removed or the interface component is reset/restarted.
If the given ExternalRoute
structure is invalid for some reason
(missing required fields, invalid values, etc), the channel will be
closed with the epitaph ZX_ERR_INVALID_ARGUMENT
.
If registering a new external route and the maximum number of
external routes has already been registered, this channel will
be closed with the epitaph ZX_ERR_NO_RESOURCES
.
Sourcepub fn unregister_external_route(
&self,
subnet: &Ipv6AddressWithPrefix,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn unregister_external_route( &self, subnet: &Ipv6AddressWithPrefix, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Unregisters any external route that was previously registered with
RegisterExternalRoute
. It returns once the external route has
been removed locally.
If the given external route was not previously registered, no action is taken.
Trait Implementations§
Source§impl Clone for DeviceRouteProxy
impl Clone for DeviceRouteProxy
Source§fn clone(&self) -> DeviceRouteProxy
fn clone(&self) -> DeviceRouteProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DeviceRouteProxy
impl Debug for DeviceRouteProxy
Source§impl DeviceRouteProxyInterface for DeviceRouteProxy
impl DeviceRouteProxyInterface for DeviceRouteProxy
type RegisterOnMeshPrefixResponseFut = QueryResponseFut<()>
type UnregisterOnMeshPrefixResponseFut = QueryResponseFut<()>
type RegisterExternalRouteResponseFut = QueryResponseFut<()>
type UnregisterExternalRouteResponseFut = QueryResponseFut<()>
fn register_on_mesh_prefix( &self, prefix: &OnMeshPrefix, ) -> Self::RegisterOnMeshPrefixResponseFut
fn unregister_on_mesh_prefix( &self, subnet: &Ipv6AddressWithPrefix, ) -> Self::UnregisterOnMeshPrefixResponseFut
fn register_external_route( &self, external_route: &ExternalRoute, ) -> Self::RegisterExternalRouteResponseFut
fn unregister_external_route( &self, subnet: &Ipv6AddressWithPrefix, ) -> Self::UnregisterExternalRouteResponseFut
Source§impl Proxy for DeviceRouteProxy
impl Proxy for DeviceRouteProxy
Source§type Protocol = DeviceRouteMarker
type Protocol = DeviceRouteMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for DeviceRouteProxy
impl !RefUnwindSafe for DeviceRouteProxy
impl Send for DeviceRouteProxy
impl Sync for DeviceRouteProxy
impl Unpin for DeviceRouteProxy
impl !UnwindSafe for DeviceRouteProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)