pub enum DeviceRequest {
Start {
cb: ClientEnd<CallbacksMarker>,
responder: DeviceStartResponder,
},
SendRequest {
addr: Addr,
data: Socket,
responder: DeviceSendRequestResponder,
},
SendShutdown {
addr: Addr,
responder: DeviceSendShutdownResponder,
},
SendRst {
addr: Addr,
responder: DeviceSendRstResponder,
},
SendResponse {
addr: Addr,
data: Socket,
responder: DeviceSendResponseResponder,
},
GetCid {
responder: DeviceGetCidResponder,
},
}
Variants§
Implementations§
Source§impl DeviceRequest
impl DeviceRequest
pub fn into_start( self, ) -> Option<(ClientEnd<CallbacksMarker>, DeviceStartResponder)>
pub fn into_send_request( self, ) -> Option<(Addr, Socket, DeviceSendRequestResponder)>
pub fn into_send_shutdown(self) -> Option<(Addr, DeviceSendShutdownResponder)>
pub fn into_send_rst(self) -> Option<(Addr, DeviceSendRstResponder)>
pub fn into_send_response( self, ) -> Option<(Addr, Socket, DeviceSendResponseResponder)>
pub fn into_get_cid(self) -> Option<DeviceGetCidResponder>
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 DeviceRequest
impl !RefUnwindSafe for DeviceRequest
impl Send for DeviceRequest
impl Sync for DeviceRequest
impl Unpin for DeviceRequest
impl !UnwindSafe for DeviceRequest
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