pub enum ControlRequest {
OpenController {
id: String,
request: ServerEnd<NamespaceControllerMarker>,
control_handle: ControlControlHandle,
},
ReopenDetachedController {
key: ControllerKey,
request: ServerEnd<NamespaceControllerMarker>,
control_handle: ControlControlHandle,
},
}
Expand description
Provides control over packet filtering configuration.
Variants§
OpenController
Open a new isolated namespace controller for filtering state.
ReopenDetachedController
Re-open an existing controller that was previously detached from.
Note that if any administrative client connections exist to the
controller, this operation will fail. At most one client may be
connected to the controller at once (except for clients connected
through the [fuchsia.net.root/Filter
] protocol).
If reconnection fails, the provided server end will be closed with one of the following epitaphs:
ZX_ERR_INVALID_ARGS
if the provided key is invalidZX_ERR_ALREADY_EXISTS
if another client is currently connected to the controller identified by the provided key
Fields
§
key: ControllerKey
§
request: ServerEnd<NamespaceControllerMarker>
§
control_handle: ControlControlHandle
Implementations§
Source§impl ControlRequest
impl ControlRequest
pub fn into_open_controller( self, ) -> Option<(String, ServerEnd<NamespaceControllerMarker>, ControlControlHandle)>
pub fn into_reopen_detached_controller( self, ) -> Option<(ControllerKey, ServerEnd<NamespaceControllerMarker>, ControlControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ControlRequest
impl !RefUnwindSafe for ControlRequest
impl Send for ControlRequest
impl Sync for ControlRequest
impl Unpin for ControlRequest
impl !UnwindSafe for ControlRequest
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
Mutably borrows from an owned value. Read more