pub enum FDomainRequest {
Show 22 variants
CreateChannel {
handles: [NewHid; 2],
responder: FDomainCreateChannelResponder,
},
ReadChannel {
handle: Hid,
responder: FDomainReadChannelResponder,
},
WriteChannel {
handle: Hid,
data: Vec<u8>,
handles: Handles,
responder: FDomainWriteChannelResponder,
},
ReadChannelStreamingStart {
handle: Hid,
responder: FDomainReadChannelStreamingStartResponder,
},
ReadChannelStreamingStop {
handle: Hid,
responder: FDomainReadChannelStreamingStopResponder,
},
CreateEvent {
handle: NewHid,
responder: FDomainCreateEventResponder,
},
CreateEventPair {
handles: [NewHid; 2],
responder: FDomainCreateEventPairResponder,
},
CreateSocket {
options: SocketType,
handles: [NewHid; 2],
responder: FDomainCreateSocketResponder,
},
SetSocketDisposition {
handle: Hid,
disposition: SocketDisposition,
disposition_peer: SocketDisposition,
responder: FDomainSetSocketDispositionResponder,
},
ReadSocket {
handle: Hid,
max_bytes: u64,
responder: FDomainReadSocketResponder,
},
WriteSocket {
handle: Hid,
data: Vec<u8>,
responder: FDomainWriteSocketResponder,
},
ReadSocketStreamingStart {
handle: Hid,
responder: FDomainReadSocketStreamingStartResponder,
},
ReadSocketStreamingStop {
handle: Hid,
responder: FDomainReadSocketStreamingStopResponder,
},
Namespace {
new_handle: NewHid,
responder: FDomainNamespaceResponder,
},
Close {
handles: Vec<Hid>,
responder: FDomainCloseResponder,
},
Duplicate {
handle: Hid,
new_handle: NewHid,
rights: Rights,
responder: FDomainDuplicateResponder,
},
Replace {
handle: Hid,
new_handle: NewHid,
rights: Rights,
responder: FDomainReplaceResponder,
},
Signal {
handle: Hid,
set: u32,
clear: u32,
responder: FDomainSignalResponder,
},
SignalPeer {
handle: Hid,
set: u32,
clear: u32,
responder: FDomainSignalPeerResponder,
},
WaitForSignals {
handle: Hid,
signals: u32,
responder: FDomainWaitForSignalsResponder,
},
AcknowledgeWriteError {
handle: Hid,
responder: FDomainAcknowledgeWriteErrorResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: FDomainControlHandle,
method_type: MethodType,
},
}
Variants§
CreateChannel
ReadChannel
WriteChannel
ReadChannelStreamingStart
ReadChannelStreamingStop
CreateEvent
CreateEventPair
CreateSocket
SetSocketDisposition
Fields
§
disposition: SocketDisposition
§
disposition_peer: SocketDisposition
§
responder: FDomainSetSocketDispositionResponder
ReadSocket
WriteSocket
ReadSocketStreamingStart
ReadSocketStreamingStop
Namespace
Close
Duplicate
Replace
Signal
SignalPeer
WaitForSignals
AcknowledgeWriteError
_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: FDomainControlHandle
§
method_type: MethodType
Implementations§
Source§impl FDomainRequest
impl FDomainRequest
pub fn into_create_channel( self, ) -> Option<([NewHid; 2], FDomainCreateChannelResponder)>
pub fn into_read_channel(self) -> Option<(Hid, FDomainReadChannelResponder)>
pub fn into_write_channel( self, ) -> Option<(Hid, Vec<u8>, Handles, FDomainWriteChannelResponder)>
pub fn into_read_channel_streaming_start( self, ) -> Option<(Hid, FDomainReadChannelStreamingStartResponder)>
pub fn into_read_channel_streaming_stop( self, ) -> Option<(Hid, FDomainReadChannelStreamingStopResponder)>
pub fn into_create_event(self) -> Option<(NewHid, FDomainCreateEventResponder)>
pub fn into_create_event_pair( self, ) -> Option<([NewHid; 2], FDomainCreateEventPairResponder)>
pub fn into_create_socket( self, ) -> Option<(SocketType, [NewHid; 2], FDomainCreateSocketResponder)>
pub fn into_set_socket_disposition( self, ) -> Option<(Hid, SocketDisposition, SocketDisposition, FDomainSetSocketDispositionResponder)>
pub fn into_read_socket(self) -> Option<(Hid, u64, FDomainReadSocketResponder)>
pub fn into_write_socket( self, ) -> Option<(Hid, Vec<u8>, FDomainWriteSocketResponder)>
pub fn into_read_socket_streaming_start( self, ) -> Option<(Hid, FDomainReadSocketStreamingStartResponder)>
pub fn into_read_socket_streaming_stop( self, ) -> Option<(Hid, FDomainReadSocketStreamingStopResponder)>
pub fn into_namespace(self) -> Option<(NewHid, FDomainNamespaceResponder)>
pub fn into_close(self) -> Option<(Vec<Hid>, FDomainCloseResponder)>
pub fn into_duplicate( self, ) -> Option<(Hid, NewHid, Rights, FDomainDuplicateResponder)>
pub fn into_replace( self, ) -> Option<(Hid, NewHid, Rights, FDomainReplaceResponder)>
pub fn into_signal(self) -> Option<(Hid, u32, u32, FDomainSignalResponder)>
pub fn into_signal_peer( self, ) -> Option<(Hid, u32, u32, FDomainSignalPeerResponder)>
pub fn into_wait_for_signals( self, ) -> Option<(Hid, u32, FDomainWaitForSignalsResponder)>
pub fn into_acknowledge_write_error( self, ) -> Option<(Hid, FDomainAcknowledgeWriteErrorResponder)>
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 FDomainRequest
impl !RefUnwindSafe for FDomainRequest
impl Send for FDomainRequest
impl Sync for FDomainRequest
impl Unpin for FDomainRequest
impl !UnwindSafe for FDomainRequest
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