pub struct Presence(/* private fields */);Implementations§
Source§impl Presence
impl Presence
pub fn room(&self) -> &Room
pub fn id(&self) -> String
pub fn profile(&self) -> &Profile
pub fn position(&self) -> [f64; 3]
pub fn status(&self) -> String
pub fn move(&self, position: [f64; 3])
pub fn set_status(&self, status: &str)
pub fn update(&self, patch: &PresencePatch)
pub fn to_json(&self) -> Value
Trait Implementations§
Auto Trait Implementations§
impl Forget for Presence
impl Freeze for Presencewhere
*const ArcInner<PresenceInner> is !null: Freeze,
PhantomData<ArcInner<PresenceInner>>: Freeze,
impl Move for Presence
impl RefUnwindSafe for Presencewhere
Atomic<usize>: RefUnwindSafe,
Chan<Message, Semaphore>: RefUnwindSafe,
Mutex<Vec<Presence>>: RefUnwindSafe,
RwLock<bool>: RefUnwindSafe,
AtomicUsize: RefUnwindSafe,
Notify: RefUnwindSafe,
Atomic<bool>: RefUnwindSafe,
Mutex<String>: RefUnwindSafe,
Mutex<PresenceState>: RefUnwindSafe,
impl Send for Presence
impl Sync for Presence
impl Unpin for Presence
impl UnsafeUnpin for Presencewhere
*const ArcInner<PresenceInner> is !null: UnsafeUnpin,
PhantomData<ArcInner<PresenceInner>>: UnsafeUnpin,
impl UnwindSafe for Presencewhere
Arc<PresenceInner>: UnwindSafe,
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