pub enum AudioModeRequest {
SetRole {
role: Role,
responder: AudioModeSetRoleResponder,
},
}
Expand description
A protocol for specifying which A2DP role this device should operate.
Variants§
SetRole
Switch the device to act as the specified A2DP Role. If the device is already set to the requested role, calling this method is a no-op.
When this method returns, a client can depend on the following:
- If the role was switched, the previous profile has requested removal from the hosts’ SDP databases, and all L2CAP channels associated with the previous profile have initiated or completed the process of closing.
- The device is in the requested A2DP role.
If the role cannot be set due to an internal error, the server will close the channel.
Implementations§
Source§impl AudioModeRequest
impl AudioModeRequest
pub fn into_set_role(self) -> Option<(Role, AudioModeSetRoleResponder)>
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 AudioModeRequest
impl !RefUnwindSafe for AudioModeRequest
impl Send for AudioModeRequest
impl Sync for AudioModeRequest
impl Unpin for AudioModeRequest
impl !UnwindSafe for AudioModeRequest
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