Skip to main content

TrashService

Trait TrashService 

Source
pub trait TrashService:
    Send
    + Sync
    + Debug {
    // Required method
    fn trash(&self, path: &Path) -> Result<(), OpsError>;
}
Expand description

Where the destination of an operation lands in the trash.

Required Methods§

Source

fn trash(&self, path: &Path) -> Result<(), OpsError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§