pub enum EndpointIdentityError {
UnboundTransport,
EmptyHost,
HostTooLong,
InvalidHost,
InvalidPort,
InvalidBasePath,
BasePathTooLong,
}Expand description
Endpoint identity validation error.
Variants§
UnboundTransport
The transport has not been bound to an endpoint identity.
EmptyHost
Endpoint hosts must not be empty.
HostTooLong
Endpoint hosts exceed MAX_ENDPOINT_HOST_BYTES.
InvalidHost
Endpoint hosts must already be normalized, visible ASCII without URL authority delimiters.
InvalidPort
Effective endpoint ports must be nonzero.
InvalidBasePath
Endpoint base paths must use normalized absolute-path form.
BasePathTooLong
Endpoint base paths exceed MAX_ENDPOINT_BASE_PATH_BYTES.
Trait Implementations§
Source§impl Clone for EndpointIdentityError
impl Clone for EndpointIdentityError
Source§fn clone(&self) -> EndpointIdentityError
fn clone(&self) -> EndpointIdentityError
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 EndpointIdentityError
Source§impl Debug for EndpointIdentityError
impl Debug for EndpointIdentityError
Source§impl Display for EndpointIdentityError
impl Display for EndpointIdentityError
impl Eq for EndpointIdentityError
Source§impl Error for EndpointIdentityError
impl Error for EndpointIdentityError
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 EndpointIdentityError
impl PartialEq for EndpointIdentityError
impl StructuralPartialEq for EndpointIdentityError
Auto Trait Implementations§
impl Freeze for EndpointIdentityError
impl RefUnwindSafe for EndpointIdentityError
impl Send for EndpointIdentityError
impl Sync for EndpointIdentityError
impl Unpin for EndpointIdentityError
impl UnsafeUnpin for EndpointIdentityError
impl UnwindSafe for EndpointIdentityError
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