pub enum InterfacesRequest {
GetAdmin {
id: u64,
control: ServerEnd<ControlMarker>,
control_handle: InterfacesControlHandle,
},
GetMac {
id: u64,
responder: InterfacesGetMacResponder,
},
}
Expand description
Provides access to installed network interfaces.
This protocol provides the ability to bypass regular ownership-controls which allow only the interface owner (generally the entity installing the interface) to perform management operations on an interface.
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§
GetAdmin
Obtain administrative control over a network interface.
- request
id
identifies the interface to be controlled. - request
control
grants the client administrative control over the interface. Closed without a terminal event ifid
does not match an existing interface.
GetMac
Return an interface’s MAC address.
- request
id
identifies the interface whose MAC is requested.
- response
mac
is the interface’s MAC address, if it has one.
Implementations§
Source§impl InterfacesRequest
impl InterfacesRequest
pub fn into_get_admin( self, ) -> Option<(u64, ServerEnd<ControlMarker>, InterfacesControlHandle)>
pub fn into_get_mac(self) -> Option<(u64, InterfacesGetMacResponder)>
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 InterfacesRequest
impl !RefUnwindSafe for InterfacesRequest
impl Send for InterfacesRequest
impl Sync for InterfacesRequest
impl Unpin for InterfacesRequest
impl !UnwindSafe for InterfacesRequest
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