pub enum SocketRequest {
CreateSocket {
options: SocketType,
handles: [NewHid; 2],
responder: SocketCreateSocketResponder,
},
SetSocketDisposition {
handle: Hid,
disposition: SocketDisposition,
disposition_peer: SocketDisposition,
responder: SocketSetSocketDispositionResponder,
},
ReadSocket {
handle: Hid,
max_bytes: u64,
responder: SocketReadSocketResponder,
},
WriteSocket {
handle: Hid,
data: Vec<u8>,
responder: SocketWriteSocketResponder,
},
ReadSocketStreamingStart {
handle: Hid,
responder: SocketReadSocketStreamingStartResponder,
},
ReadSocketStreamingStop {
handle: Hid,
responder: SocketReadSocketStreamingStopResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: SocketControlHandle,
method_type: MethodType,
},
}
Variants§
CreateSocket
SetSocketDisposition
Fields
§
disposition: SocketDisposition
§
disposition_peer: SocketDisposition
§
responder: SocketSetSocketDispositionResponder
ReadSocket
WriteSocket
ReadSocketStreamingStart
ReadSocketStreamingStop
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: SocketControlHandle
§
method_type: MethodType
Implementations§
Source§impl SocketRequest
impl SocketRequest
pub fn into_create_socket( self, ) -> Option<(SocketType, [NewHid; 2], SocketCreateSocketResponder)>
pub fn into_set_socket_disposition( self, ) -> Option<(Hid, SocketDisposition, SocketDisposition, SocketSetSocketDispositionResponder)>
pub fn into_read_socket(self) -> Option<(Hid, u64, SocketReadSocketResponder)>
pub fn into_write_socket( self, ) -> Option<(Hid, Vec<u8>, SocketWriteSocketResponder)>
pub fn into_read_socket_streaming_start( self, ) -> Option<(Hid, SocketReadSocketStreamingStartResponder)>
pub fn into_read_socket_streaming_stop( self, ) -> Option<(Hid, SocketReadSocketStreamingStopResponder)>
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 SocketRequest
impl !RefUnwindSafe for SocketRequest
impl Send for SocketRequest
impl Sync for SocketRequest
impl Unpin for SocketRequest
impl !UnwindSafe for SocketRequest
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