pub enum ConnectionReceiver2Request {
Connected {
payload: ConnectionReceiver2ConnectedRequest,
responder: ConnectionReceiver2ConnectedResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: ConnectionReceiver2ControlHandle,
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
§
payload: ConnectionReceiver2ConnectedRequest
§
responder: ConnectionReceiver2ConnectedResponder
_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: ConnectionReceiver2ControlHandle
§
method_type: MethodType
Implementations§
Source§impl ConnectionReceiver2Request
impl ConnectionReceiver2Request
pub fn into_connected( self, ) -> Option<(ConnectionReceiver2ConnectedRequest, ConnectionReceiver2ConnectedResponder)>
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 ConnectionReceiver2Request
impl !RefUnwindSafe for ConnectionReceiver2Request
impl Send for ConnectionReceiver2Request
impl Sync for ConnectionReceiver2Request
impl Unpin for ConnectionReceiver2Request
impl !UnwindSafe for ConnectionReceiver2Request
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