pub enum FilterRequest {
OpenController {
id: String,
request: ServerEnd<NamespaceControllerMarker>,
control_handle: FilterControlHandle,
},
}
Expand description
Provides administrative access to all filtering state.
This protocol provides the ability to bypass regular ownership controls which allow only the owner of each controller to modify or remove resources they added.
Circumventing the strong-ownership semantics through use of this protocol is highly discouraged and applications considering use of this protocol are encouraged to exhaust other options first by working with the Netstack team to find an alternative solution.
Variants§
OpenController
Open a new or existing NamespaceController
. The server end is
“auto-detached”: in other words, it behaves as if the client has called
Detach
on creation, and the lifetime of the filtering state is not
tied to the client end of the protocol. If the client does call
Detach
on the NamespaceController
, the server will close the
channel.
Clients have unilateral access to add or remove resources owned by the controller, irrespective of other clients’ ownership. This includes the ability to remove resources installed by other clients.
Implementations§
Source§impl FilterRequest
impl FilterRequest
pub fn into_open_controller( self, ) -> Option<(String, ServerEnd<NamespaceControllerMarker>, FilterControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL