pub struct Jid { /* private fields */ }Expand description
The address of an entity in the XMPP protocol.
Each JID has three parts:
- Local part: Optionally identifies a local entity on the domain.
- Domain part: Identifies an XMPP server.
- Resource part: Optionally identifies a service or an object.
More details can be found in RFC7622
Implementations§
Source§impl Jid
impl Jid
Sourcepub fn domainpart(&self) -> &str
pub fn domainpart(&self) -> &str
Only the domain part of the JID.
Sourcepub fn resourcepart(&self) -> Option<&str>
pub fn resourcepart(&self) -> Option<&str>
Only the resource part of the JID.
Trait Implementations§
Source§impl Ord for Jid
impl Ord for Jid
Source§impl PartialOrd for Jid
impl PartialOrd for Jid
impl Eq for Jid
Auto Trait Implementations§
impl Freeze for Jid
impl RefUnwindSafe for Jid
impl Send for Jid
impl Sync for Jid
impl Unpin for Jid
impl UnwindSafe for Jid
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