#[non_exhaustive]pub enum RegistrationObservationError {
MissingVia,
MalformedVia,
ContradictoryReceived,
ContradictoryRport,
MissingReceived,
MissingRport,
NonIpReceived,
InvalidRport,
}Expand description
Why a successful REGISTER response did not contain one usable path observation.
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.
MissingVia
The successful response carried no Via header.
MalformedVia
The first Via header could not be parsed into a top hop.
ContradictoryReceived
The top hop asserted received more than once.
ContradictoryRport
The top hop asserted rport more than once.
MissingReceived
rport was present but received was absent.
MissingRport
received was present but rport was absent or valueless.
NonIpReceived
received was valueless or was not an IPv4 or IPv6 literal.
InvalidRport
rport was not a decimal port in 1..=65535.
Trait Implementations§
Source§impl Clone for RegistrationObservationError
impl Clone for RegistrationObservationError
Source§fn clone(&self) -> RegistrationObservationError
fn clone(&self) -> RegistrationObservationError
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 moreSource§impl Debug for RegistrationObservationError
impl Debug for RegistrationObservationError
Source§impl PartialEq for RegistrationObservationError
impl PartialEq for RegistrationObservationError
Source§fn eq(&self, other: &RegistrationObservationError) -> bool
fn eq(&self, other: &RegistrationObservationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RegistrationObservationError
impl Eq for RegistrationObservationError
impl StructuralPartialEq for RegistrationObservationError
Auto Trait Implementations§
impl Freeze for RegistrationObservationError
impl RefUnwindSafe for RegistrationObservationError
impl Send for RegistrationObservationError
impl Sync for RegistrationObservationError
impl Unpin for RegistrationObservationError
impl UnsafeUnpin for RegistrationObservationError
impl UnwindSafe for RegistrationObservationError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more