pub enum Error {
AndroidEnvironment,
NotMainThread,
Io(Error),
Empty,
InvalidItem,
NoHandler,
AlreadyOpen,
UnsupportedItem,
Unsupported,
Unknown,
}Expand description
Errors encountered when showing a native share sheet.
Variants§
AndroidEnvironment
Couldn’t acquire the Android environment.
See the robius-android-env crate for more details.
NotMainThread
The share sheet wasn’t started from the main UI thread, as is required.
Io(Error)
A file attachment or other filesystem operation failed.
Empty
The share sheet has no text, URL, or attachment to share.
InvalidItem
A URL, URI, file path, or MIME type was malformed or otherwise invalid.
NoHandler
No app or system service is available to receive this share.
AlreadyOpen
The native UI is already showing a share sheet. The user must dismiss that one and try again.
UnsupportedItem
The platform supports sharing, but not the given share item.
Unsupported
This platform is unsupported.
Unknown
An unknown error occurred.
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()
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