pub struct RouteTableV4Proxy { /* private fields */ }
Implementations§
Source§impl RouteTableV4Proxy
impl RouteTableV4Proxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.net.routes.admin/RouteTableV4.
Sourcepub fn take_event_stream(&self) -> RouteTableV4EventStream
pub fn take_event_stream(&self) -> RouteTableV4EventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn get_table_id(
&self,
) -> QueryResponseFut<u32, DefaultFuchsiaResourceDialect>
pub fn get_table_id( &self, ) -> QueryResponseFut<u32, DefaultFuchsiaResourceDialect>
Gets the table ID for this table.
Sourcepub fn detach(&self) -> Result<(), Error>
pub fn detach(&self) -> Result<(), Error>
Detaches the lifetime of the route table from the lifetime of the client end of the channel.
After this method is called, the route table will not be removed if the client end is closed. It’s a no-op if called on the main table.
Sourcepub fn remove(
&self,
) -> QueryResponseFut<BaseRouteTableRemoveResult, DefaultFuchsiaResourceDialect>
pub fn remove( &self, ) -> QueryResponseFut<BaseRouteTableRemoveResult, DefaultFuchsiaResourceDialect>
Removes the route table explicitly.
This method cannot be called on the main table, an error will be returned if called. The server will close the channel after this method successfully returns.
Gets an authentication credential for this table.
The credential contains a [zx::handle::EVENT
], whose duplicate is
held by the server. This credential can be passed into
fuchsia.net.routes.admin
API calls to prove ownership of this route
table. The EVENT
is stable throughout the lifetime of the route table.
Clients may duplicate this EVENT
to make multiple API calls, or
transfer the EVENT
to other clients.
- response
credential
the authorization credential for this table.
Sourcepub fn new_route_set(
&self,
route_set: ServerEnd<RouteSetV4Marker>,
) -> Result<(), Error>
pub fn new_route_set( &self, route_set: ServerEnd<RouteSetV4Marker>, ) -> Result<(), Error>
Creates an empty route set.
- request
route_set
grants access to the [RouteSetV4
] protocol.
Trait Implementations§
Source§impl Clone for RouteTableV4Proxy
impl Clone for RouteTableV4Proxy
Source§fn clone(&self) -> RouteTableV4Proxy
fn clone(&self) -> RouteTableV4Proxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RouteTableV4Proxy
impl Debug for RouteTableV4Proxy
Source§impl Proxy for RouteTableV4Proxy
impl Proxy for RouteTableV4Proxy
Source§type Protocol = RouteTableV4Marker
type Protocol = RouteTableV4Marker
Proxy
controls.