Struct tough::TransportError [−][src]
pub struct TransportError { /* fields omitted */ }
Expand description
The error type that Transport::fetch
returns.
Implementations
Creates a new TransportError
. Use this when there is no underlying error to wrap.
pub fn new_with_cause<S, E>(kind: TransportErrorKind, url: S, source: E) -> Self where
E: Into<Box<dyn Error + Send + Sync>>,
S: AsRef<str>,
pub fn new_with_cause<S, E>(kind: TransportErrorKind, url: S, source: E) -> Self where
E: Into<Box<dyn Error + Send + Sync>>,
S: AsRef<str>,
Creates a new TransportError
. Use this to preserve an underlying error.
The type of Transport
error that occurred.