pub enum ScoConnectionReceiverRequest {
Connected {
connection: ClientEnd<ScoConnectionMarker>,
params: ScoConnectionParameters,
control_handle: ScoConnectionReceiverControlHandle,
},
Error {
error: ScoErrorCode,
control_handle: ScoConnectionReceiverControlHandle,
},
}
Expand description
Represents an active synchronous connection request by a profile.
Either Connected()
or Error()
will be called and then server will close the protocol.
Variants§
Connected
Fields
§
connection: ClientEnd<ScoConnectionMarker>
§
params: ScoConnectionParameters
§
control_handle: ScoConnectionReceiverControlHandle
Called upon successful connection establishment.
params
contains the parameters that were used to establish the connection.
Error
Called when connection establishment fails or is cancelled by the host.
Implementations§
source§impl ScoConnectionReceiverRequest
impl ScoConnectionReceiverRequest
pub fn into_connected( self ) -> Option<(ClientEnd<ScoConnectionMarker>, ScoConnectionParameters, ScoConnectionReceiverControlHandle)>
pub fn into_error( self ) -> Option<(ScoErrorCode, ScoConnectionReceiverControlHandle)>
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 !RefUnwindSafe for ScoConnectionReceiverRequest
impl Send for ScoConnectionReceiverRequest
impl Sync for ScoConnectionReceiverRequest
impl Unpin for ScoConnectionReceiverRequest
impl !UnwindSafe for ScoConnectionReceiverRequest
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