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
Fields
§
responder: EndpointGetNameResponder
Gets endpoint name.
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