pub enum BaseRouteTableRequest {
GetTableId {
responder: BaseRouteTableGetTableIdResponder,
},
Detach {
control_handle: BaseRouteTableControlHandle,
},
Remove {
responder: BaseRouteTableRemoveResponder,
},
GetAuthorizationForRouteTable {
responder: BaseRouteTableGetAuthorizationForRouteTableResponder,
},
}Expand description
Common base for RouteTable protocol that is IP version agnostic. This
helps reduce FIDL duplication.
Variants§
GetTableId
Gets the table ID for this table.
Fields
responder: BaseRouteTableGetTableIdResponderDetach
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.
Fields
control_handle: BaseRouteTableControlHandleRemove
Removes the route table explicitly.
This method cannot be called on the main table or an interface-local table, an error will be returned if called. The server will close the channel after this method successfully returns.
Fields
responder: BaseRouteTableRemoveResponderGetAuthorizationForRouteTable
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
credentialthe authorization credential for this table.
Fields
Implementations§
Source§impl BaseRouteTableRequest
impl BaseRouteTableRequest
pub fn into_get_table_id(self) -> Option<BaseRouteTableGetTableIdResponder>
pub fn into_detach(self) -> Option<BaseRouteTableControlHandle>
pub fn into_remove(self) -> Option<BaseRouteTableRemoveResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL