Enum qcs_api_client_grpc::channel::ChannelError
source · #[non_exhaustive]pub enum ChannelError {
InvalidUri(InvalidUri),
InvalidUrl(ParseError),
UnsupportedProtocol(Option<String>),
SslFailure(Error),
Mismatch {
https_proxy: Uri,
http_proxy: Uri,
},
}Expand description
Errors that may occur when configuring a channel connection
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.
InvalidUri(InvalidUri)
Failed to parse URI.
InvalidUrl(ParseError)
Failed to parse URL. Used to derive user/pass.
UnsupportedProtocol(Option<String>)
Unsupported proxy protocol.
SslFailure(Error)
Proxy ssl verification failed
Mismatch
Proxy targets do not agree
Trait Implementations§
source§impl Debug for ChannelError
impl Debug for ChannelError
source§impl Display for ChannelError
impl Display for ChannelError
source§impl Error for ChannelError
impl Error for ChannelError
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: Error> From<ChannelError> for Error<E>
impl<E: Error> From<ChannelError> for Error<E>
source§fn from(source: ChannelError) -> Self
fn from(source: ChannelError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ChannelError
impl From<Error> for ChannelError
source§impl From<InvalidUri> for ChannelError
impl From<InvalidUri> for ChannelError
source§fn from(source: InvalidUri) -> Self
fn from(source: InvalidUri) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for ChannelError
impl From<ParseError> for ChannelError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ChannelError
impl Send for ChannelError
impl Sync for ChannelError
impl Unpin for ChannelError
impl !UnwindSafe for ChannelError
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request