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, 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.
Trait Implementations§
Source§impl BaseRouteTableProxyInterface for BaseRouteTableProxy
impl BaseRouteTableProxyInterface for BaseRouteTableProxy
type GetTableIdResponseFut = QueryResponseFut<u32>
type RemoveResponseFut = QueryResponseFut<Result<(), BaseRouteTableRemoveError>>
type GetAuthorizationForRouteTableResponseFut = QueryResponseFut<GrantForRouteTableAuthorization>
fn get_table_id(&self) -> Self::GetTableIdResponseFut
fn detach(&self) -> Result<(), Error>
fn remove(&self) -> Self::RemoveResponseFut
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
Source§type Protocol = BaseRouteTableMarker
type Protocol = BaseRouteTableMarker
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 BaseRouteTableProxy
impl !RefUnwindSafe for BaseRouteTableProxy
impl Send for BaseRouteTableProxy
impl Sync for BaseRouteTableProxy
impl Unpin for BaseRouteTableProxy
impl !UnwindSafe for BaseRouteTableProxy
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
)