pub enum InterfacesRequest {
GetPort {
id: u64,
port: ServerEnd<PortMarker>,
control_handle: InterfacesControlHandle,
},
}
Expand description
Network interface debugging functionality.
This protocol is intended for debugging and testing only; and not meant for load-bearing code.
Variants§
GetPort
Provides access to the port backing an interface.
port
is closed with ZX_ERR_NOT_FOUND
if an interface referenced by
id
does not exist or ZX_ERR_NOT_SUPPORTED
if it is not backed by a
[fuchsia.hardware.network/Port
].
- request
id
identifies the interface whose port is granted. - request
port
grants access to the interface’s device port.
Implementations§
Source§impl InterfacesRequest
impl InterfacesRequest
pub fn into_get_port( self, ) -> Option<(u64, ServerEnd<PortMarker>, InterfacesControlHandle)>
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