pub enum ActiveSessionRequest {
WatchActiveSession {
responder: ActiveSessionWatchActiveSessionResponder,
},
}
Expand description
A protocol for watching the current active media session on the device.
The currently active media session is the most recent existing media session to announce a “Playing” state on the local device, even if it is now paused.
Variants§
WatchActiveSession
Watches the active session. The first request will be answered immediately with the current active session. Always leave a request hanging to receive a reply when the active session changes.
Fields
§
responder: ActiveSessionWatchActiveSessionResponder
Implementations§
Source§impl ActiveSessionRequest
impl ActiveSessionRequest
pub fn into_watch_active_session( self, ) -> Option<ActiveSessionWatchActiveSessionResponder>
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 ActiveSessionRequest
impl !RefUnwindSafe for ActiveSessionRequest
impl Send for ActiveSessionRequest
impl Sync for ActiveSessionRequest
impl Unpin for ActiveSessionRequest
impl !UnwindSafe for ActiveSessionRequest
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