pub enum ConnectionReceiverRequest {
Connected {
peer_id: PeerId,
channel: Channel,
protocol: Vec<ProtocolDescriptor>,
control_handle: ConnectionReceiverControlHandle,
},
_UnknownMethod {
ordinal: u64,
control_handle: ConnectionReceiverControlHandle,
method_type: MethodType,
},
}
Expand description
Represents a service which is registered by this profile. Closing this protocol will remove the service registration.
Variants§
Connected
Called when a peer connects to this service. The channel connected is delivered
with parameters in channel
.
protocol
will contain a protocol list up to the point connected (for example, if
L2CAP is connected, it will contain the L2CAP protocol and specify the PSM connected)
Fields
§
peer_id: PeerId
§
protocol: Vec<ProtocolDescriptor>
§
control_handle: ConnectionReceiverControlHandle
_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: ConnectionReceiverControlHandle
§
method_type: MethodType
Implementations§
Source§impl ConnectionReceiverRequest
impl ConnectionReceiverRequest
pub fn into_connected( self, ) -> Option<(PeerId, Channel, Vec<ProtocolDescriptor>, ConnectionReceiverControlHandle)>
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 ConnectionReceiverRequest
impl !RefUnwindSafe for ConnectionReceiverRequest
impl Send for ConnectionReceiverRequest
impl Sync for ConnectionReceiverRequest
impl Unpin for ConnectionReceiverRequest
impl !UnwindSafe for ConnectionReceiverRequest
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