Enum garage_api::Error [−][src]
pub enum Error {}Show variants
InternalError(GarageError), Hyper(Error), Http(Error), Forbidden(String), AuthorizationHeaderMalformed(String), NotFound, InvalidUtf8Str(Utf8Error), InvalidUtf8String(FromUtf8Error), InvalidBase64(DecodeError), InvalidXml(String), InvalidHeader(ToStrError), InvalidRange(HttpRangeParseError), BadRequest(String),
Expand description
Errors of this crate
Variants
InternalError(GarageError)
Error related to deeper parts of Garage
Hyper(Error)
Error related to Hyper
Http(Error)
Error related to HTTP
Forbidden(String)
No proper api key was used, or the signature was invalid
AuthorizationHeaderMalformed(String)
Authorization Header Malformed
The object requested don’t exists
InvalidUtf8Str(Utf8Error)
The request contained an invalid UTF-8 sequence in its path or in other parameters
InvalidUtf8String(FromUtf8Error)
The request used an invalid path
InvalidBase64(DecodeError)
Some base64 encoded data was badly encoded
InvalidXml(String)
The client sent invalid XML data
InvalidHeader(ToStrError)
The client sent a header with invalid value
InvalidRange(HttpRangeParseError)
The client sent a range header with invalid value
BadRequest(String)
The client sent an invalid request
Implementations
Trait Implementations
impl Error for Error
[src]
impl Error for Error
[src]fn description(&self) -> &str
[src]
fn description(&self) -> &str
[src]use the Display impl or to_string()
fn cause(&self) -> Option<&dyn Error>
[src]
fn cause(&self) -> Option<&dyn Error>
[src]replaced by Error::source, which can support downcasting
impl From<DecodeError> for Error
[src]
impl From<DecodeError> for Error
[src]fn from(from: DecodeError) -> Self
[src]
fn from(from: DecodeError) -> Self
[src]Performs the conversion.
impl From<FromUtf8Error> for Error
[src]
impl From<FromUtf8Error> for Error
[src]fn from(from: FromUtf8Error) -> Self
[src]
fn from(from: FromUtf8Error) -> Self
[src]Performs the conversion.
impl From<HttpRangeParseError> for Error
[src]
impl From<HttpRangeParseError> for Error
[src]fn from(from: HttpRangeParseError) -> Self
[src]
fn from(from: HttpRangeParseError) -> Self
[src]Performs the conversion.
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>,