pub enum DestinationError {
InvalidDestination,
InvalidNamespace,
DestinationNameLength,
LabelLength,
LabelBoundary,
LabelCharacter,
}Expand description
A destination failed canonical validation.
Invalid input is deliberately omitted so it cannot inject log content.
Variants§
InvalidDestination
The value does not have the exact namespace/name form.
InvalidNamespace
The namespace contains a dot and therefore more than one label.
DestinationNameLength
The complete destination name exceeds crate::MAX_DESTINATION_NAME_BYTES.
LabelLength
A label is empty or exceeds crate::MAX_LABEL_BYTES.
LabelBoundary
A label starts or ends with a character not permitted at its boundary.
LabelCharacter
A label contains a character outside the canonical lowercase ASCII set.
Trait Implementations§
Source§impl Clone for DestinationError
impl Clone for DestinationError
Source§fn clone(&self) -> DestinationError
fn clone(&self) -> DestinationError
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 DestinationError
Source§impl Debug for DestinationError
impl Debug for DestinationError
Source§impl Display for DestinationError
impl Display for DestinationError
impl Eq for DestinationError
Source§impl Error for DestinationError
impl Error for DestinationError
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 DestinationError
impl PartialEq for DestinationError
impl StructuralPartialEq for DestinationError
Auto Trait Implementations§
impl Freeze for DestinationError
impl RefUnwindSafe for DestinationError
impl Send for DestinationError
impl Sync for DestinationError
impl Unpin for DestinationError
impl UnsafeUnpin for DestinationError
impl UnwindSafe for DestinationError
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