Struct http::Error [−][src]
pub struct Error { /* fields omitted */ }
Expand description
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
impl Error
[src]
impl Error
[src]Trait Implementations
impl Error for Error
[src]
impl Error for Error
[src]fn description(&self) -> &str
[src]
fn description(&self) -> &str
[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
impl From<Infallible> for Error
[src]
impl From<Infallible> for Error
[src]fn from(err: Infallible) -> Error
[src]
fn from(err: Infallible) -> Error
[src]Performs the conversion.
impl From<InvalidHeaderName> for Error
[src]
impl From<InvalidHeaderName> for Error
[src]fn from(err: InvalidHeaderName) -> Error
[src]
fn from(err: InvalidHeaderName) -> Error
[src]Performs the conversion.
impl From<InvalidHeaderValue> for Error
[src]
impl From<InvalidHeaderValue> for Error
[src]fn from(err: InvalidHeaderValue) -> Error
[src]
fn from(err: InvalidHeaderValue) -> Error
[src]Performs the conversion.
impl From<InvalidMethod> for Error
[src]
impl From<InvalidMethod> for Error
[src]fn from(err: InvalidMethod) -> Error
[src]
fn from(err: InvalidMethod) -> Error
[src]Performs the conversion.
impl From<InvalidStatusCode> for Error
[src]
impl From<InvalidStatusCode> for Error
[src]fn from(err: InvalidStatusCode) -> Error
[src]
fn from(err: InvalidStatusCode) -> Error
[src]Performs the conversion.
impl From<InvalidUri> for Error
[src]
impl From<InvalidUri> for Error
[src]fn from(err: InvalidUri) -> Error
[src]
fn from(err: InvalidUri) -> Error
[src]Performs the conversion.
impl From<InvalidUriParts> for Error
[src]
impl From<InvalidUriParts> for Error
[src]fn from(err: InvalidUriParts) -> Error
[src]
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more