pub enum Error {
ReqwestError(Error),
Generic {
source: Box<dyn Error + Send + Sync + 'static>,
},
NotFound {
source: Box<dyn Error + Send + Sync + 'static>,
},
AlreadyExists {
source: Box<dyn Error + Send + Sync + 'static>,
},
Precondition {
source: Box<dyn Error + Send + Sync + 'static>,
},
NotModified {
source: Box<dyn Error + Send + Sync + 'static>,
},
PermissionDenied {
source: Box<dyn Error + Send + Sync + 'static>,
},
Unauthenticated {
source: Box<dyn Error + Send + Sync + 'static>,
},
UnknownConfigurationKey {
key: String,
},
InvalidHeader(InvalidHeaderValue),
RecordingIo(Error),
ClockError,
}Variants§
ReqwestError(Error)
Generic
NotFound
Error when the object is not found at given location
AlreadyExists
Error when the object already exists
Precondition
Error when the required conditions failed for the operation
NotModified
Error when the object at the location isn’t modified
PermissionDenied
Error when the used credentials don’t have enough permission to perform the requested operation
Unauthenticated
Error when the used credentials lack valid authentication
UnknownConfigurationKey
Error when a configuration key is invalid for the store used
InvalidHeader(InvalidHeaderValue)
Error constructing an HTTP header value from a string
RecordingIo(Error)
Error when writing a recording to disk
ClockError
Error when the system clock is before the Unix epoch
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<InvalidHeaderValue> for Error
impl From<InvalidHeaderValue> for Error
Source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more