Struct dittolive_ditto::presence::PresenceObserver
source · pub struct PresenceObserver { /* private fields */ }
Expand description
A handle returned by ditto.presence().observe(...)
for receiving presence updates.
Dropping this handle will cancel the observer.
use dittolive_ditto::prelude::*;
let _observer = ditto.presence().observe(|graph| {
println!("Latest presence graph: {graph:#?}");
});
// At this point, the observer callbacks will be canceled
drop(_observer);
Auto Trait Implementations§
impl Freeze for PresenceObserver
impl !RefUnwindSafe for PresenceObserver
impl Send for PresenceObserver
impl Sync for PresenceObserver
impl Unpin for PresenceObserver
impl !UnwindSafe for PresenceObserver
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