Enum garage_web::Error [−][src]
pub enum Error { ApiError(Error), InternalError(GarageError), NotFound, InvalidUtf8(Utf8Error), InvalidHeader(ToStrError), BadRequest(String), }
Expand description
Errors of this crate
Variants
ApiError(Error)
An error received from the API crate
InternalError(GarageError)
Error internal to garage
The file does not exist
InvalidUtf8(Utf8Error)
The request contained an invalid UTF-8 sequence in its path or in other parameters
InvalidHeader(ToStrError)
The client send a header with invalid value
BadRequest(String)
The client sent a request without host, or with unsupported method
Implementations
impl Error
[src]
impl Error
[src]pub fn http_status_code(&self) -> StatusCode
[src]
pub fn http_status_code(&self) -> StatusCode
[src]Transform errors into http status code
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 cause(&self) -> Option<&dyn Error>
[src]
fn cause(&self) -> Option<&dyn Error>
[src]👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
impl From<ToStrError> for Error
[src]
impl From<ToStrError> for Error
[src]fn from(from: ToStrError) -> Self
[src]
fn from(from: ToStrError) -> Self
[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
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,