pub enum ChannelListenerRegistryRequest {
ListenL2cap {
payload: ChannelListenerRegistryListenL2capRequest,
responder: ChannelListenerRegistryListenL2capResponder,
},
}
Expand description
Represents the ability to register and accept incoming connections on connection oriented channels.
Variants§
ListenL2cap
Register a listener for incoming channels. The registry will assign a
PSM value that is unique for the local device, as well as open a
[ChannelListener
] for accepting incoming channels. In the unlikely
event that all PSMs have been assigned, this call will fail with
ZX_ERR_NO_RESOURCES
.
Note that the method of service discovery or advertising is defined by the service or protocol, so it is the responsibility of the caller to communicate the assigned PSM to any clients.
Fields
§
responder: ChannelListenerRegistryListenL2capResponder
Implementations§
Source§impl ChannelListenerRegistryRequest
impl ChannelListenerRegistryRequest
pub fn into_listen_l2cap( self, ) -> Option<(ChannelListenerRegistryListenL2capRequest, ChannelListenerRegistryListenL2capResponder)>
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 ChannelListenerRegistryRequest
impl !RefUnwindSafe for ChannelListenerRegistryRequest
impl Send for ChannelListenerRegistryRequest
impl Sync for ChannelListenerRegistryRequest
impl Unpin for ChannelListenerRegistryRequest
impl !UnwindSafe for ChannelListenerRegistryRequest
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