pub enum HangingDataChannelRequest {
Read {
responder: HangingDataChannelReadResponder,
},
Write {
payload: HangingDataChannelWriteRequest,
responder: HangingDataChannelWriteResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: HangingDataChannelControlHandle,
method_type: MethodType,
},
}Expand description
Provides a bound / connected session to a particular DataChannel. New connections should use the UnboundHangingDataChannel to open a session of this procotol. Calls to Read() on a HangingDataChannel will operate as a Hanging-Get, only returning once data becomes available.
Variants§
Read
The call will return the next datagram to be read from the channel. This call has hanging get semantics and will return once data is available.
Fields
§
responder: HangingDataChannelReadResponderWrite
The call will return once the data is fully committed.
If the driver is not ready for a write, it will return ZX_ERR_NO_RESOURCES
#[non_exhaustive]_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: HangingDataChannelControlHandle§
method_type: MethodTypeImplementations§
Source§impl HangingDataChannelRequest
impl HangingDataChannelRequest
pub fn into_read(self) -> Option<HangingDataChannelReadResponder>
pub fn into_write( self, ) -> Option<(HangingDataChannelWriteRequest, HangingDataChannelWriteResponder)>
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 HangingDataChannelRequest
impl !RefUnwindSafe for HangingDataChannelRequest
impl Send for HangingDataChannelRequest
impl Sync for HangingDataChannelRequest
impl Unpin for HangingDataChannelRequest
impl !UnwindSafe for HangingDataChannelRequest
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