pub enum ChannelListenerRequest {
Accept {
channel: ClientEnd<ChannelMarker>,
responder: ChannelListenerAcceptResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: ChannelListenerControlHandle,
method_type: MethodType,
},
}
Expand description
Represents a service or protocol that accepts incoming channel requests. Incoming channel requests for the associated PSM will be connected via this protocol. Closing this protocol will also cease accepting any incoming channel requests, but existing established channels will not be affected. Additionally, once this protocol is closed the implementation is free to reuse the PSM that was previously assigned for this instance.
Variants§
Accept
_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: ChannelListenerControlHandle
§
method_type: MethodType
Implementations§
Source§impl ChannelListenerRequest
impl ChannelListenerRequest
pub fn into_accept( self, ) -> Option<(ClientEnd<ChannelMarker>, ChannelListenerAcceptResponder)>
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 ChannelListenerRequest
impl !RefUnwindSafe for ChannelListenerRequest
impl Send for ChannelListenerRequest
impl Sync for ChannelListenerRequest
impl Unpin for ChannelListenerRequest
impl !UnwindSafe for ChannelListenerRequest
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