The save directory for Entries
. May be temporary (delete-on-drop) or permanent.
This directory is temporary and will be deleted, along with its contents, when this wrapper
is dropped.
This directory is permanent and will be left on the filesystem when this wrapper is dropped.
N.B. If this directory is in the OS temporary directory then it may still be
deleted at any time.
Get the path of this directory, either temporary or permanent.
Returns true
if this is a temporary directory which will be deleted on-drop.
Unwrap the PathBuf
from self
; if this is a temporary directory,
it will be converted to a permanent one.
If this SaveDir
is temporary, convert it to permanent.
This is a no-op if it already is permanent.
Even though this will prevent deletion on-drop, the temporary folder on most OSes
(where this directory is created by default) can be automatically cleared by the OS at any
time, usually on reboot or when free space is low.
It is recommended that you relocate the files from a request which you want to keep to a
permanent folder on the filesystem.
Delete this directory and its contents, regardless of its permanence.
This is very likely irreversible, depending on the OS implementation.
Files deleted programmatically are deleted directly from disk, as compared to most file
manager applications which use a staging area from which deleted files can be safely
recovered (i.e. Windows' Recycle Bin, OS X's Trash Can, etc.).
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
impl<T> Typeable for T where T: Any, | |
Get the TypeId
of this object.
impl<T> DebugAny for T where T: Any + Debug, | |
impl<T> UnsafeAny for T where T: Any, | |