pub enum Error {
Show 16 variants
NormalizeUri {
source: IntoUriError,
},
LocateDhttpHome {
source: LocateDhttpHomeError,
},
LoadExplicitIdentity {
name: DhttpName<'static>,
source: ResolveIdentityProfileError,
},
LoadIdentitySsl {
source: LoadIdentityError,
},
BuildEndpoint {
source: BuildEndpointError,
},
BindListener {
source: Error,
},
TunnelConnect {
addr: String,
source: Error,
},
TunnelUpgrade {
source: Error,
},
ForwardConnect {
addr: String,
source: Error,
},
ForwardHandshake {
addr: String,
source: Error,
},
ForwardSendRequest {
source: Error,
},
ForwardMissingHost {},
ForwardInvalidHost {
source: ToStrError,
},
Daemonize {
source: Error,
},
CreateLogFile {
path: PathBuf,
source: Error,
},
Whatever {
source: Box<Whatever>,
},
}Variants§
NormalizeUri
Fields
§
source: IntoUriErrorLocateDhttpHome
Fields
§
source: LocateDhttpHomeErrorLoadExplicitIdentity
LoadIdentitySsl
Fields
§
source: LoadIdentityErrorBuildEndpoint
Fields
§
source: BuildEndpointErrorBindListener
TunnelConnect
TunnelUpgrade
ForwardConnect
ForwardHandshake
ForwardSendRequest
ForwardMissingHost
ForwardInvalidHost
Fields
§
source: ToStrErrorDaemonize
CreateLogFile
Whatever
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 ErrorCompat for Error
impl ErrorCompat for Error
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl FromString for Error
impl FromString for Error
Source§fn without_source(message: String) -> Self
fn without_source(message: String) -> Self
Create a brand new error from the given string
Source§fn with_source(source: Self::Source, message: String) -> Self
fn with_source(source: Self::Source, message: String) -> Self
Wrap an existing error with the given string
Source§impl IntoError<Error> for NormalizeUriSnafu
impl IntoError<Error> for NormalizeUriSnafu
Source§type Source = IntoUriError
type Source = IntoUriError
The underlying error
Source§fn into_error(self, error: Self::Source) -> Error
fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the error
Source§impl IntoError<Error> for LocateDhttpHomeSnafu
impl IntoError<Error> for LocateDhttpHomeSnafu
Source§type Source = LocateDhttpHomeError
type Source = LocateDhttpHomeError
The underlying error
Source§fn into_error(self, error: Self::Source) -> Error
fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the error
Source§impl<__T0> IntoError<Error> for LoadExplicitIdentitySnafu<__T0>
impl<__T0> IntoError<Error> for LoadExplicitIdentitySnafu<__T0>
Source§type Source = ResolveIdentityProfileError
type Source = ResolveIdentityProfileError
The underlying error
Source§fn into_error(self, error: Self::Source) -> Error
fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the error
Source§impl IntoError<Error> for LoadIdentitySslSnafu
impl IntoError<Error> for LoadIdentitySslSnafu
Source§type Source = LoadIdentityError
type Source = LoadIdentityError
The underlying error
Source§fn into_error(self, error: Self::Source) -> Error
fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the error
Source§impl IntoError<Error> for BuildEndpointSnafu
impl IntoError<Error> for BuildEndpointSnafu
Source§type Source = BuildEndpointError
type Source = BuildEndpointError
The underlying error
Source§fn into_error(self, error: Self::Source) -> Error
fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the error
Source§impl IntoError<Error> for BindListenerSnafu
impl IntoError<Error> for BindListenerSnafu
Source§impl<__T0> IntoError<Error> for TunnelConnectSnafu<__T0>
impl<__T0> IntoError<Error> for TunnelConnectSnafu<__T0>
Source§impl IntoError<Error> for TunnelUpgradeSnafu
impl IntoError<Error> for TunnelUpgradeSnafu
Source§impl<__T0> IntoError<Error> for ForwardConnectSnafu<__T0>
impl<__T0> IntoError<Error> for ForwardConnectSnafu<__T0>
Source§impl<__T0> IntoError<Error> for ForwardHandshakeSnafu<__T0>
impl<__T0> IntoError<Error> for ForwardHandshakeSnafu<__T0>
Source§impl IntoError<Error> for ForwardSendRequestSnafu
impl IntoError<Error> for ForwardSendRequestSnafu
Source§impl IntoError<Error> for ForwardMissingHostSnafu
impl IntoError<Error> for ForwardMissingHostSnafu
Source§impl IntoError<Error> for ForwardInvalidHostSnafu
impl IntoError<Error> for ForwardInvalidHostSnafu
Source§type Source = ToStrError
type Source = ToStrError
The underlying error
Source§fn into_error(self, error: Self::Source) -> Error
fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the error
Source§impl IntoError<Error> for DaemonizeSnafu
impl IntoError<Error> for DaemonizeSnafu
Auto Trait Implementations§
impl !Freeze for Error
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<S> DecodeExt for Swhere
S: ?Sized,
impl<S> DecodeExt for Swhere
S: ?Sized,
fn decode<T>(
self,
) -> impl Future<Output = Result<T, <T as DecodeFrom<Self>>::Error>> + Sendwhere
Self: Sized,
T: DecodeFrom<Self>,
fn decode_one<'s, T>(
&'s mut self,
) -> impl Future<Output = Result<T, <T as DecodeFrom<&'s mut Self>>::Error>>where
T: DecodeFrom<&'s mut Self>,
fn into_decode_stream<T, Error>(self) -> impl Stream<Item = Result<T, Error>>where
Self: Sized,
T: for<'s> DecodeFrom<&'s mut Self, Error = Error>,
&'s mut Self: for<'s> AsyncBufRead,
Error: From<Error>,
Source§impl<S> EncodeExt for Swhere
S: ?Sized,
impl<S> EncodeExt for Swhere
S: ?Sized,
fn encode<T>(
self,
item: T,
) -> impl Future<Output = Result<<T as EncodeInto<Self>>::Output, <T as EncodeInto<Self>>::Error>> + Sendwhere
Self: Sized,
T: EncodeInto<Self>,
fn encode_one<'s, T>(
&'s mut self,
item: T,
) -> impl Future<Output = Result<<T as EncodeInto<&'s mut Self>>::Output, <T as EncodeInto<&'s mut Self>>::Error>>where
Self: Sized,
T: EncodeInto<&'s mut Self>,
fn into_encode_sink<T, Error>(self) -> impl Sink<T, Error = Error>where
Self: Sized,
T: for<'s> EncodeInto<&'s mut Self, Error = Error>,
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> 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