Enum PresenceVisibility
pub enum PresenceVisibility {
WhereIAm,
ThatImHere,
Nothing,
}Expand description
What the people in a workspace see of this person, chosen per workspace.
A public workspace (one listed in its host’s directory, open to anyone)
starts at Self::ThatImHere: strangers see a face, never where it is.
A private one starts at Self::WhereIAm.
Variants§
WhereIAm
Your face, which window you are in, your pointer, your selection and what you say beside your pointer.
ThatImHere
Your face only: not which window, not your pointer.
Nothing
Nothing: you do not appear, and you do not see others’ pointers either.
Implementations§
§impl PresenceVisibility
impl PresenceVisibility
pub const fn default_for(public: bool) -> PresenceVisibility
pub const fn default_for(public: bool) -> PresenceVisibility
What a workspace starts at before the person chooses.
pub const fn shows_where(self) -> bool
pub const fn shows_where(self) -> bool
Whether others may see where this person is: which window, their pointer, caret and selection, what they say beside the pointer.
pub const fn shows_presence(self) -> bool
pub const fn shows_presence(self) -> bool
Whether others may see this person at all.
pub const fn sees_pointers(self) -> bool
pub const fn sees_pointers(self) -> bool
Whether this person sees others’ pointers: someone who shows nothing sees nothing of where others are, which is fair.
pub fn from_id(id: &str) -> Option<PresenceVisibility>
pub fn from_id(id: &str) -> Option<PresenceVisibility>
The choice a stored word names; None for one this build does not
know.
Trait Implementations§
§impl Clone for PresenceVisibility
impl Clone for PresenceVisibility
§fn clone(&self) -> PresenceVisibility
fn clone(&self) -> PresenceVisibility
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for PresenceVisibility
impl Debug for PresenceVisibility
§impl Hash for PresenceVisibility
impl Hash for PresenceVisibility
§impl PartialEq for PresenceVisibility
impl PartialEq for PresenceVisibility
§fn eq(&self, other: &PresenceVisibility) -> bool
fn eq(&self, other: &PresenceVisibility) -> bool
self and other values to be equal, and is used by ==.impl Copy for PresenceVisibility
impl Eq for PresenceVisibility
impl StructuralPartialEq for PresenceVisibility
Auto Trait Implementations§
impl Freeze for PresenceVisibility
impl RefUnwindSafe for PresenceVisibility
impl Send for PresenceVisibility
impl Sync for PresenceVisibility
impl Unpin for PresenceVisibility
impl UnsafeUnpin for PresenceVisibility
impl UnwindSafe for PresenceVisibility
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more