pub enum ObserverDiscoveryRequest {
WatchSessions {
watch_options: WatchOptions,
sessions_watcher: ClientEnd<SessionsWatcherMarker>,
control_handle: ObserverDiscoveryControlHandle,
},
ConnectToSession {
session_id: u64,
session_request: ServerEnd<SessionObserverMarker>,
control_handle: ObserverDiscoveryControlHandle,
},
}
Expand description
ObserverDiscovery
observes the collection of published media sessions
and connects clients to them for observation without playback controls.
Variants§
WatchSessions
Connects a session watcher configured with the given options.
Fields
§
watch_options: WatchOptions
§
sessions_watcher: ClientEnd<SessionsWatcherMarker>
§
control_handle: ObserverDiscoveryControlHandle
ConnectToSession
Connects to a SessionObserver
for session_id
if present. Drops the
given channel otherwise.
Fields
§
session_request: ServerEnd<SessionObserverMarker>
§
control_handle: ObserverDiscoveryControlHandle
Implementations§
Source§impl ObserverDiscoveryRequest
impl ObserverDiscoveryRequest
pub fn into_watch_sessions( self, ) -> Option<(WatchOptions, ClientEnd<SessionsWatcherMarker>, ObserverDiscoveryControlHandle)>
pub fn into_connect_to_session( self, ) -> Option<(u64, ServerEnd<SessionObserverMarker>, ObserverDiscoveryControlHandle)>
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 ObserverDiscoveryRequest
impl !RefUnwindSafe for ObserverDiscoveryRequest
impl Send for ObserverDiscoveryRequest
impl Sync for ObserverDiscoveryRequest
impl Unpin for ObserverDiscoveryRequest
impl !UnwindSafe for ObserverDiscoveryRequest
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