Enum hyperdriver::server::conn::tls::sni::ValidateSNIError
source · pub enum ValidateSNIError {
InvalidSNI {
host: String,
sni: String,
},
MissingSNI {
host: String,
},
}Available on crate features
server and tls and sni only.Expand description
Error returned when validating the SNI from TLS connection information.
Variants§
Trait Implementations§
source§impl Debug for ValidateSNIError
impl Debug for ValidateSNIError
source§impl Display for ValidateSNIError
impl Display for ValidateSNIError
source§impl Error for ValidateSNIError
impl Error for ValidateSNIError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<E> From<ValidateSNIError> for SNIMiddlewareError<E>where
E: Error,
impl<E> From<ValidateSNIError> for SNIMiddlewareError<E>where
E: Error,
source§fn from(source: ValidateSNIError) -> Self
fn from(source: ValidateSNIError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ValidateSNIError
impl PartialEq for ValidateSNIError
source§fn eq(&self, other: &ValidateSNIError) -> bool
fn eq(&self, other: &ValidateSNIError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ValidateSNIError
impl StructuralPartialEq for ValidateSNIError
Auto Trait Implementations§
impl Freeze for ValidateSNIError
impl RefUnwindSafe for ValidateSNIError
impl Send for ValidateSNIError
impl Sync for ValidateSNIError
impl Unpin for ValidateSNIError
impl UnwindSafe for ValidateSNIError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.