pub enum EndpointRequest {
GetConfig {
responder: EndpointGetConfigResponder,
},
GetName {
responder: EndpointGetNameResponder,
},
SetLinkUp {
up: bool,
responder: EndpointSetLinkUpResponder,
},
GetPort {
port: ServerEnd<PortMarker>,
control_handle: EndpointControlHandle,
},
GetProxy_ {
proxy: ServerEnd<DeviceProxy_Marker>,
control_handle: EndpointControlHandle,
},
}
Expand description
Virtual ethernet endpoint.
Variants§
GetConfig
Fields
§
responder: EndpointGetConfigResponder
GetName
Gets endpoint name.
Fields
§
responder: EndpointGetNameResponder
SetLinkUp
Sends link up or down signal
GetPort
Connects to the underlying device port.
GetProxy_
Gets a proxy to open requests with zircon ethernet device.
Implementations§
Source§impl EndpointRequest
impl EndpointRequest
pub fn into_get_config(self) -> Option<EndpointGetConfigResponder>
pub fn into_get_name(self) -> Option<EndpointGetNameResponder>
pub fn into_set_link_up(self) -> Option<(bool, EndpointSetLinkUpResponder)>
pub fn into_get_port( self, ) -> Option<(ServerEnd<PortMarker>, EndpointControlHandle)>
pub fn into_get_proxy_( self, ) -> Option<(ServerEnd<DeviceProxy_Marker>, EndpointControlHandle)>
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 EndpointRequest
impl !RefUnwindSafe for EndpointRequest
impl Send for EndpointRequest
impl Sync for EndpointRequest
impl Unpin for EndpointRequest
impl !UnwindSafe for EndpointRequest
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