pub enum CloudError {
InvalidUrl(String),
UnsupportedScheme(String),
MissingCredentials,
InvalidCredentials(String),
PresignError(String),
RangeOutOfBounds {
start: u64,
end: u64,
size: u64,
},
}Expand description
Errors produced by the cloud I/O layer.
Variants§
InvalidUrl(String)
The URL string could not be parsed.
UnsupportedScheme(String)
The URL scheme is not supported.
MissingCredentials
Credentials are required but were not provided.
InvalidCredentials(String)
The supplied credentials are malformed or expired.
PresignError(String)
An error occurred while generating a presigned URL.
RangeOutOfBounds
The requested byte range exceeds the object size.
Trait Implementations§
Source§impl Clone for CloudError
impl Clone for CloudError
Source§fn clone(&self) -> CloudError
fn clone(&self) -> CloudError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CloudError
impl Debug for CloudError
Source§impl Display for CloudError
impl Display for CloudError
Source§impl Error for CloudError
impl Error for CloudError
1.30.0 · 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 PartialEq for CloudError
impl PartialEq for CloudError
impl Eq for CloudError
impl StructuralPartialEq for CloudError
Auto Trait Implementations§
impl Freeze for CloudError
impl RefUnwindSafe for CloudError
impl Send for CloudError
impl Sync for CloudError
impl Unpin for CloudError
impl UnsafeUnpin for CloudError
impl UnwindSafe for CloudError
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