Struct nuclear::http::Error [−][src]
pub struct Error { /* fields omitted */ }
A generic “error” for HTTP connections
This error type is less specific than the error returned from other
functions in this crate, but all other errors can be converted to this
error. Consumers of this crate can typically consume and work with this form
of error for conversions with the ?
operator.
Implementations
Trait Implementations
impl Error for Error
[src]
impl Error for Error
[src]pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<Infallible> for Error
[src]
impl From<Infallible> for Error
[src]pub fn from(err: Infallible) -> Error
[src]
pub fn from(err: Infallible) -> Error
[src]Performs the conversion.
impl From<InvalidHeaderName> for Error
[src]
impl From<InvalidHeaderName> for Error
[src]pub fn from(err: InvalidHeaderName) -> Error
[src]
pub fn from(err: InvalidHeaderName) -> Error
[src]Performs the conversion.
impl From<InvalidHeaderValue> for Error
[src]
impl From<InvalidHeaderValue> for Error
[src]pub fn from(err: InvalidHeaderValue) -> Error
[src]
pub fn from(err: InvalidHeaderValue) -> Error
[src]Performs the conversion.
impl From<InvalidMethod> for Error
[src]
impl From<InvalidMethod> for Error
[src]pub fn from(err: InvalidMethod) -> Error
[src]
pub fn from(err: InvalidMethod) -> Error
[src]Performs the conversion.
impl From<InvalidStatusCode> for Error
[src]
impl From<InvalidStatusCode> for Error
[src]pub fn from(err: InvalidStatusCode) -> Error
[src]
pub fn from(err: InvalidStatusCode) -> Error
[src]Performs the conversion.
impl From<InvalidUri> for Error
[src]
impl From<InvalidUri> for Error
[src]pub fn from(err: InvalidUri) -> Error
[src]
pub fn from(err: InvalidUri) -> Error
[src]Performs the conversion.
impl From<InvalidUriParts> for Error
[src]
impl From<InvalidUriParts> for Error
[src]pub fn from(err: InvalidUriParts) -> Error
[src]
pub fn from(err: InvalidUriParts) -> Error
[src]Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]