Enum jid::JidParseError
source · [−]pub enum JidParseError {
NoDomain,
NoResource,
EmptyNode,
EmptyResource,
}Expand description
An error that signifies that a Jid cannot be parsed from a string.
Variants
NoDomain
Happens when there is no domain, that is either the string is empty, starts with a /, or contains the @/ sequence.
NoResource
Happens when there is no resource, that is string contains no /.
EmptyNode
Happens when the node is empty, that is the string starts with a @.
EmptyResource
Happens when the resource is empty, that is the string ends with a /.
Trait Implementations
sourceimpl Clone for JidParseError
impl Clone for JidParseError
sourcefn clone(&self) -> JidParseError
fn clone(&self) -> JidParseError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for JidParseError
impl Debug for JidParseError
sourceimpl Display for JidParseError
impl Display for JidParseError
sourceimpl Error for JidParseError
impl Error for JidParseError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl PartialEq<JidParseError> for JidParseError
impl PartialEq<JidParseError> for JidParseError
impl Eq for JidParseError
impl StructuralEq for JidParseError
impl StructuralPartialEq for JidParseError
Auto Trait Implementations
impl RefUnwindSafe for JidParseError
impl Send for JidParseError
impl Sync for JidParseError
impl Unpin for JidParseError
impl UnwindSafe for JidParseError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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