[−][src]Struct trash_utils::Trash
Implementations
impl Trash
[src]
pub fn new() -> Result<Trash>
[src]
pub fn get_trashed_files(&self) -> Result<Vec<Result<TrashEntry>>>
[src]
pub fn trash_file<P>(&self, path: P) -> Result<PathBuf> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
pub fn restore_trashed_file<P>(&self, path: P) -> Result<PathBuf> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
pub fn erase_file<P>(&self, path: P) -> Result<()> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
pub fn is_file_trashed<P>(&self, path: P) -> Result<bool> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
Auto Trait Implementations
impl RefUnwindSafe for Trash
impl Send for Trash
impl Sync for Trash
impl Unpin for Trash
impl UnwindSafe for Trash
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,