pub struct BaseRouteTableSynchronousProxy { /* private fields */ }
Implementations§
source§impl BaseRouteTableSynchronousProxy
impl BaseRouteTableSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<BaseRouteTableEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<BaseRouteTableEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn get_table_id(&self, ___deadline: Time) -> Result<u32, Error>
pub fn get_table_id(&self, ___deadline: Time) -> Result<u32, Error>
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,
___deadline: Time
) -> Result<BaseRouteTableRemoveResult, Error>
pub fn remove( &self, ___deadline: Time ) -> Result<BaseRouteTableRemoveResult, Error>
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 SynchronousProxy for BaseRouteTableSynchronousProxy
impl SynchronousProxy for BaseRouteTableSynchronousProxy
§type Proxy = BaseRouteTableProxy
type Proxy = BaseRouteTableProxy
§type Protocol = BaseRouteTableMarker
type Protocol = BaseRouteTableMarker
Proxy
controls.