Enum hyperdriver::client::Error  
source · pub enum Error {
    Connection(Box<dyn Error + Send + Sync>),
    Transport(Box<dyn Error + Send + Sync>),
    Protocol(Box<dyn Error + Send + Sync>),
    Service(Box<dyn Error + Send + Sync>),
    User(Error),
    InvalidMethod(Method),
    UnsupportedProtocol,
    RequestTimeout,
}Available on crate feature 
client only.Expand description
Client error type.
Variants§
Connection(Box<dyn Error + Send + Sync>)
Error occured with the underlying connection.
Transport(Box<dyn Error + Send + Sync>)
Error occured with the underlying transport.
Protocol(Box<dyn Error + Send + Sync>)
Error occured with the underlying protocol.
Service(Box<dyn Error + Send + Sync>)
Error occured with the underlying service
User(Error)
Error occured with the user’s request, such as an invalid URI.
InvalidMethod(Method)
Invalid HTTP Method for the current action.
UnsupportedProtocol
Protocol is not supported by this client or transport.
RequestTimeout
Request timeout
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)>
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()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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> 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.