pub struct BaseRouteTableProxy { /* private fields */ }
Implementations§
source§impl BaseRouteTableProxy
impl BaseRouteTableProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.net.routes.admin/BaseRouteTable.
sourcepub fn take_event_stream(&self) -> BaseRouteTableEventStream
pub fn take_event_stream(&self) -> BaseRouteTableEventStream
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>
pub fn get_table_id(&self) -> QueryResponseFut<u32>
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>
pub fn remove(&self) -> QueryResponseFut<BaseRouteTableRemoveResult>
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
table_id
the table ID of the table. - response
token
the kernel event object used to authenticate.
Trait Implementations§
source§impl BaseRouteTableProxyInterface for BaseRouteTableProxy
impl BaseRouteTableProxyInterface for BaseRouteTableProxy
type GetTableIdResponseFut = QueryResponseFut<u32>
fn get_table_id(&self) -> Self::GetTableIdResponseFut
fn detach(&self) -> Result<(), Error>
type RemoveResponseFut = QueryResponseFut<Result<(), BaseRouteTableRemoveError>>
fn remove(&self) -> Self::RemoveResponseFut
type GetAuthorizationForRouteTableResponseFut = QueryResponseFut<(u32, Event)>
source§impl Clone for BaseRouteTableProxy
impl Clone for BaseRouteTableProxy
source§fn clone(&self) -> BaseRouteTableProxy
fn clone(&self) -> BaseRouteTableProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BaseRouteTableProxy
impl Debug for BaseRouteTableProxy
source§impl Proxy for BaseRouteTableProxy
impl Proxy for BaseRouteTableProxy
§type Protocol = BaseRouteTableMarker
type Protocol = BaseRouteTableMarker
Proxy
controls.