pub enum Typing {
No,
Yes(Duration),
}
Available on (crate features
client-api-c
or client-api-s
) and (crate features client
or server
) and crate feature api
only.Expand description
A mark for whether the user is typing within a length of time or not.
Variants
No
Not typing.
Yes(Duration)
Typing during the specified length of time.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Typing
impl<'de> Deserialize<'de> for Typing
sourcefn deserialize<D>(
deserializer: D
) -> Result<Typing, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<Typing, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for Typing
impl Serialize for Typing
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Typing
Auto Trait Implementations
impl RefUnwindSafe for Typing
impl Send for Typing
impl Sync for Typing
impl Unpin for Typing
impl UnwindSafe for Typing
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more