pub enum SessionsWatcherRequest {
SessionUpdated {
session_id: u64,
session_info_delta: SessionInfoDelta,
responder: SessionsWatcherSessionUpdatedResponder,
},
SessionRemoved {
session_id: u64,
responder: SessionsWatcherSessionRemovedResponder,
},
}
Expand description
SessionsWatcher
watches the collection of published sessions.
Variants§
SessionUpdated
Called by the registry service when a session is updated. On first connection, this will be called as many times as needed to communicate the state of the world.
SessionsWatcher
must reply to acknowledge receipt of the session info delta.
Delinquent watchers who do not reply will eventually be disconnected.
SessionRemoved
Called by the registry service when a session is removed from the registered collection.
SessionsWatcher
must reply to acknlowledge receipt of the session removal.
Delinquent watchers who do not reply will eventually be disconnected.
Implementations§
Source§impl SessionsWatcherRequest
impl SessionsWatcherRequest
pub fn into_session_updated( self, ) -> Option<(u64, SessionInfoDelta, SessionsWatcherSessionUpdatedResponder)>
pub fn into_session_removed( self, ) -> Option<(u64, SessionsWatcherSessionRemovedResponder)>
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 SessionsWatcherRequest
impl !RefUnwindSafe for SessionsWatcherRequest
impl Send for SessionsWatcherRequest
impl Sync for SessionsWatcherRequest
impl Unpin for SessionsWatcherRequest
impl !UnwindSafe for SessionsWatcherRequest
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