Enum xmpp_parsers::roster::Subscription
source · pub enum Subscription {
None,
From,
To,
Both,
Remove,
}
Expand description
The state of your mutual subscription with a contact.
Variants§
None
The user doesn’t have any subscription to this contact’s presence, and neither does this contact.
From
Only this contact has a subscription with you, not the opposite.
To
Only you have a subscription with this contact, not the opposite.
Both
Both you and your contact are subscribed to each other’s presence.
Remove
In a roster set, this asks the server to remove this contact item from your roster.
Trait Implementations§
source§impl AsXmlText for Subscription
impl AsXmlText for Subscription
source§impl Clone for Subscription
impl Clone for Subscription
source§fn clone(&self) -> Subscription
fn clone(&self) -> Subscription
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Subscription
impl Debug for Subscription
source§impl Default for Subscription
impl Default for Subscription
source§fn default() -> Subscription
fn default() -> Subscription
Returns the “default value” for a type. Read more
source§impl FromStr for Subscription
impl FromStr for Subscription
source§impl FromXmlText for Subscription
impl FromXmlText for Subscription
source§fn from_xml_text(s: String) -> Result<Subscription, Error>
fn from_xml_text(s: String) -> Result<Subscription, Error>
Convert the given XML text to a value.
source§impl IntoAttributeValue for Subscription
impl IntoAttributeValue for Subscription
source§fn into_attribute_value(self) -> Option<String>
fn into_attribute_value(self) -> Option<String>
Turns this into an attribute string, or None if it shouldn’t be added.
source§impl PartialEq for Subscription
impl PartialEq for Subscription
impl StructuralPartialEq for Subscription
Auto Trait Implementations§
impl Freeze for Subscription
impl RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl UnwindSafe for Subscription
Blanket Implementations§
§impl<T> AsOptionalXmlText for Twhere
T: AsXmlText,
impl<T> AsOptionalXmlText for Twhere
T: AsXmlText,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)