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