pub enum PhotoError {
Cancelled,
TooLarge,
UnsupportedImage,
Unavailable,
Failed(String),
}Expand description
Why a _with call delivered no photo. Word it yourself: the shells send only these codes.
Variants§
Cancelled
TooLarge
It could not be made to fit max_bytes.
UnsupportedImage
The platform can’t decode it (e.g. HEIC on Android 8 or a non-Safari browser).
No picker or camera on this device.
Failed(String)
Implementations§
Trait Implementations§
Source§impl Clone for PhotoError
impl Clone for PhotoError
Source§impl Debug for PhotoError
impl Debug for PhotoError
Source§impl<'de> Deserialize<'de> for PhotoError
impl<'de> Deserialize<'de> for PhotoError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PhotoError
Source§impl PartialEq for PhotoError
impl PartialEq for PhotoError
Source§impl Serialize for PhotoError
impl Serialize for PhotoError
impl StructuralPartialEq for PhotoError
Auto Trait Implementations§
impl Freeze for PhotoError
impl RefUnwindSafe for PhotoError
impl Send for PhotoError
impl Sync for PhotoError
impl Unpin for PhotoError
impl UnsafeUnpin for PhotoError
impl UnwindSafe for PhotoError
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