pub enum ThumbnailError {
Path(LookupError),
UnsupportedExtension,
UnsupportedImage,
ConversionError,
}
Available on crate features
sync_routes
and dbx_files
only.Variants§
Path(LookupError)
An error occurs when downloading metadata for the image.
UnsupportedExtension
The file extension doesn’t allow conversion to a thumbnail.
UnsupportedImage
The image cannot be converted to a thumbnail.
ConversionError
An error occurs during thumbnail conversion.
Trait Implementations§
Source§impl Clone for ThumbnailError
impl Clone for ThumbnailError
Source§fn clone(&self) -> ThumbnailError
fn clone(&self) -> ThumbnailError
Returns a copy 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 ThumbnailError
impl Debug for ThumbnailError
Source§impl<'de> Deserialize<'de> for ThumbnailError
impl<'de> Deserialize<'de> for ThumbnailError
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ThumbnailError
impl Display for ThumbnailError
Source§impl Error for ThumbnailError
impl Error for ThumbnailError
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 ThumbnailError
impl PartialEq for ThumbnailError
Source§impl Serialize for ThumbnailError
impl Serialize for ThumbnailError
impl Eq for ThumbnailError
impl StructuralPartialEq for ThumbnailError
Auto Trait Implementations§
impl Freeze for ThumbnailError
impl RefUnwindSafe for ThumbnailError
impl Send for ThumbnailError
impl Sync for ThumbnailError
impl Unpin for ThumbnailError
impl UnwindSafe for ThumbnailError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.