pub enum UnboundWaitableDataChannelRequest {
Bind {
payload: UnboundWaitableDataChannelBindRequest,
responder: UnboundWaitableDataChannelBindResponder,
},
GetIdentifier {
responder: UnboundWaitableDataChannelGetIdentifierResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: UnboundWaitableDataChannelControlHandle,
method_type: MethodType,
},
}Expand description
Provides both service instance disambiguation as well as a notion of a disconnected data channel via bind interface. Callers should use this protocol to acquire a bound WaitableDataChannel.
Variants§
Bind
Set event used to signal device state, using the signals above, and returns a bound client. Will return ZX_ERR_ALREADY_BOUND if no instances are available.
Fields
§
responder: UnboundWaitableDataChannelBindResponderGetIdentifier
Returns the identifier associated with this connection.
Fields
#[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: UnboundWaitableDataChannelControlHandle§
method_type: MethodTypeImplementations§
Source§impl UnboundWaitableDataChannelRequest
impl UnboundWaitableDataChannelRequest
pub fn into_bind( self, ) -> Option<(UnboundWaitableDataChannelBindRequest, UnboundWaitableDataChannelBindResponder)>
pub fn into_get_identifier( self, ) -> Option<UnboundWaitableDataChannelGetIdentifierResponder>
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 UnboundWaitableDataChannelRequest
impl !RefUnwindSafe for UnboundWaitableDataChannelRequest
impl Send for UnboundWaitableDataChannelRequest
impl Sync for UnboundWaitableDataChannelRequest
impl Unpin for UnboundWaitableDataChannelRequest
impl !UnwindSafe for UnboundWaitableDataChannelRequest
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