pub enum TypingMode {
Named,
Anonymous,
Off,
}Expand description
Who sees that someone is typing in a channel (typing, specification §8.2, §10.5).
A plain JSON string, as the specification writes it.
Variants§
Named
signal.typing names the members typing (the default).
Anonymous
signal.typing carries only how many are typing (1, 2, or 3 for “several”), never who.
Off
The host drops typing signals in the channel; clients do not send them.
Implementations§
Source§impl TypingMode
impl TypingMode
Sourcepub const fn is_named(&self) -> bool
pub const fn is_named(&self) -> bool
Whether this is the default, TypingMode::Named.
Trait Implementations§
Source§impl Clone for TypingMode
impl Clone for TypingMode
Source§fn clone(&self) -> TypingMode
fn clone(&self) -> TypingMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TypingMode
Source§impl Debug for TypingMode
impl Debug for TypingMode
Source§impl Default for TypingMode
impl Default for TypingMode
Source§fn default() -> TypingMode
fn default() -> TypingMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TypingMode
impl<'de> Deserialize<'de> for TypingMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TypingMode
Source§impl Hash for TypingMode
impl Hash for TypingMode
Source§impl PartialEq for TypingMode
impl PartialEq for TypingMode
Source§impl Serialize for TypingMode
impl Serialize for TypingMode
impl StructuralPartialEq for TypingMode
Auto Trait Implementations§
impl Freeze for TypingMode
impl RefUnwindSafe for TypingMode
impl Send for TypingMode
impl Sync for TypingMode
impl Unpin for TypingMode
impl UnsafeUnpin for TypingMode
impl UnwindSafe for TypingMode
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