pub struct LocalFile { /* private fields */ }Expand description
A file guaranteed to be reachable through a filesystem path.
Produced by PickedFile::into_local_file, and as stated there,
this auto-handles cleaning up any temp file instances it has created.
This instance should live for as long as you need to access/use the file, for example, throughout the duration of an upload/save operation.
Implementations§
Source§impl LocalFile
impl LocalFile
Sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
The platform-provided display name, if known (Android).
Sourcepub fn is_temporary(&self) -> bool
pub fn is_temporary(&self) -> bool
Whether this path is a temporary copy that will be cleaned up on drop.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LocalFile
impl RefUnwindSafe for LocalFile
impl Send for LocalFile
impl Sync for LocalFile
impl Unpin for LocalFile
impl UnsafeUnpin for LocalFile
impl UnwindSafe for LocalFile
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