pub enum FilePickerError {
Failed(String),
ReadFailed(String),
WrongKind {
actual: &'static str,
expected: &'static str,
},
UnsupportedFeature {
operation: &'static str,
feature: &'static str,
},
UnsupportedPlatform,
}Expand description
Errors produced while presenting a picker or reading a picked entry.
Variants§
Failed(String)
Presenting the picker failed.
ReadFailed(String)
Reading or listing a picked entry failed.
WrongKind
list was called on a file, or read_bytes on a folder.
Fields
UnsupportedFeature
The picker requires a cranpose-services feature that is not enabled.
Fields
UnsupportedPlatform
No picker is available on this platform/build.
Trait Implementations§
Source§impl Clone for FilePickerError
impl Clone for FilePickerError
Source§fn clone(&self) -> FilePickerError
fn clone(&self) -> FilePickerError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FilePickerError
impl Debug for FilePickerError
Source§impl Display for FilePickerError
impl Display for FilePickerError
Source§impl Error for FilePickerError
impl Error for FilePickerError
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()
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