pub enum NetworkRequest {
AddPort {
port: ClientEnd<PortMarker>,
interface: ServerEnd<InterfaceMarker>,
control_handle: NetworkControlHandle,
},
}
Expand description
Provides control over a network.
This protocol encodes the lifetime of the underlying network in both directions, that is:
- if the client end is closed: all interfaces added to the network (not including any used to provide upstream connectivity) will be removed and destroyed, and the network will be removed;
- if the server end is closed, all interfaces on the network and the network itself have been destroyed.
Variants§
AddPort
Adds a port to the network.
- request
port
port to be added. - request
interface
provides control over the interface.
Fields
§
port: ClientEnd<PortMarker>
§
interface: ServerEnd<InterfaceMarker>
§
control_handle: NetworkControlHandle
Implementations§
Source§impl NetworkRequest
impl NetworkRequest
pub fn into_add_port( self, ) -> Option<(ClientEnd<PortMarker>, ServerEnd<InterfaceMarker>, NetworkControlHandle)>
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 NetworkRequest
impl !RefUnwindSafe for NetworkRequest
impl Send for NetworkRequest
impl Sync for NetworkRequest
impl Unpin for NetworkRequest
impl !UnwindSafe for NetworkRequest
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