pub enum FilePickerError {
Failed(String),
Content(ContentError),
UnsupportedFeature {
operation: &'static str,
feature: &'static str,
},
UnsupportedPlatform,
}Expand description
Errors produced while presenting a chooser.
Variants§
Failed(String)
Presenting the chooser failed.
Content(ContentError)
Reading or writing the chosen content failed.
UnsupportedFeature
The chooser requires a cranpose-services feature that is not enabled.
Fields
UnsupportedPlatform
No chooser is available on this platform/build.
Trait Implementations§
Source§impl Clone for FilePickerError
impl Clone for FilePickerError
Source§impl Debug for FilePickerError
impl Debug for FilePickerError
Source§impl Display for FilePickerError
impl Display for FilePickerError
impl Eq for FilePickerError
Source§impl Error for FilePickerError
impl Error for FilePickerError
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<ContentError> for FilePickerError
impl From<ContentError> for FilePickerError
Source§fn from(source: ContentError) -> Self
fn from(source: ContentError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FilePickerError
impl PartialEq for FilePickerError
impl StructuralPartialEq for FilePickerError
Auto Trait Implementations§
impl Freeze for FilePickerError
impl RefUnwindSafe for FilePickerError
impl Send for FilePickerError
impl Sync for FilePickerError
impl Unpin for FilePickerError
impl UnsafeUnpin for FilePickerError
impl UnwindSafe for FilePickerError
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