#[non_exhaustive]pub enum InvalidProviderId {
Empty,
TooLong,
SegmentTooLong,
InvalidSyntax,
ReservedAuthority,
}Expand description
Reason a provider identifier could not be accepted.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
The identifier was empty.
TooLong
The identifier exceeded the total length bound.
SegmentTooLong
One segment exceeded the segment length bound.
InvalidSyntax
The identifier did not follow the lowercase dotted syntax.
ReservedAuthority
The identifier used a built-in authority for an unknown product.
Trait Implementations§
Source§impl Clone for InvalidProviderId
impl Clone for InvalidProviderId
Source§fn clone(&self) -> InvalidProviderId
fn clone(&self) -> InvalidProviderId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InvalidProviderId
Source§impl Debug for InvalidProviderId
impl Debug for InvalidProviderId
Source§impl Display for InvalidProviderId
impl Display for InvalidProviderId
impl Eq for InvalidProviderId
Source§impl Error for InvalidProviderId
impl Error for InvalidProviderId
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for InvalidProviderId
impl PartialEq for InvalidProviderId
impl StructuralPartialEq for InvalidProviderId
Auto Trait Implementations§
impl Freeze for InvalidProviderId
impl RefUnwindSafe for InvalidProviderId
impl Send for InvalidProviderId
impl Sync for InvalidProviderId
impl Unpin for InvalidProviderId
impl UnsafeUnpin for InvalidProviderId
impl UnwindSafe for InvalidProviderId
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