pub enum ChannelRequest {
CreateChannel {
handles: [NewHid; 2],
responder: ChannelCreateChannelResponder,
},
ReadChannel {
handle: Hid,
responder: ChannelReadChannelResponder,
},
WriteChannel {
handle: Hid,
data: Vec<u8>,
handles: Handles,
responder: ChannelWriteChannelResponder,
},
ReadChannelStreamingStart {
handle: Hid,
responder: ChannelReadChannelStreamingStartResponder,
},
ReadChannelStreamingStop {
handle: Hid,
responder: ChannelReadChannelStreamingStopResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: ChannelControlHandle,
method_type: MethodType,
},
}
Variants§
CreateChannel
ReadChannel
WriteChannel
ReadChannelStreamingStart
ReadChannelStreamingStop
_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: ChannelControlHandle
§
method_type: MethodType
Implementations§
Source§impl ChannelRequest
impl ChannelRequest
pub fn into_create_channel( self, ) -> Option<([NewHid; 2], ChannelCreateChannelResponder)>
pub fn into_read_channel(self) -> Option<(Hid, ChannelReadChannelResponder)>
pub fn into_write_channel( self, ) -> Option<(Hid, Vec<u8>, Handles, ChannelWriteChannelResponder)>
pub fn into_read_channel_streaming_start( self, ) -> Option<(Hid, ChannelReadChannelStreamingStartResponder)>
pub fn into_read_channel_streaming_stop( self, ) -> Option<(Hid, ChannelReadChannelStreamingStopResponder)>
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 ChannelRequest
impl !RefUnwindSafe for ChannelRequest
impl Send for ChannelRequest
impl Sync for ChannelRequest
impl Unpin for ChannelRequest
impl !UnwindSafe for ChannelRequest
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