pub enum ChatState {
Active,
Composing,
Gone,
Inactive,
Paused,
}
Expand description
Enum representing chatstate elements part of the
http://jabber.org/protocol/chatstates
namespace.
Variants§
Active
<active xmlns='http://jabber.org/protocol/chatstates'/>
Composing
<composing xmlns='http://jabber.org/protocol/chatstates'/>
Gone
<gone xmlns='http://jabber.org/protocol/chatstates'/>
Inactive
<inactive xmlns='http://jabber.org/protocol/chatstates'/>
Paused
<paused xmlns='http://jabber.org/protocol/chatstates'/>
Trait Implementations§
Source§impl AsXml for ChatState
impl AsXml for ChatState
Source§impl FromXml for ChatState
impl FromXml for ChatState
Source§type Builder = ChatStateFromXmlBuilder
type Builder = ChatStateFromXmlBuilder
A builder type used to construct the element. Read more
Source§fn from_events(
name: QName,
attrs: AttrMap,
ctx: &Context<'_>,
) -> Result<Self::Builder, FromEventsError>
fn from_events( name: QName, attrs: AttrMap, ctx: &Context<'_>, ) -> Result<Self::Builder, FromEventsError>
Attempt to initiate the streamed construction of this struct from XML. Read more
Source§fn xml_name_matcher() -> XmlNameMatcher<'static>
fn xml_name_matcher() -> XmlNameMatcher<'static>
Return a predicate which determines if
Self
may be parsed from
a given XML element. Read moreSource§impl TryFrom<Element> for ChatState
impl TryFrom<Element> for ChatState
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl MessagePayload for ChatState
impl StructuralPartialEq for ChatState
Auto Trait Implementations§
impl Freeze for ChatState
impl RefUnwindSafe for ChatState
impl Send for ChatState
impl Sync for ChatState
impl Unpin for ChatState
impl UnwindSafe for ChatState
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