Skip to main content

Module trash

Module trash 

Source
Expand description

Trash backend trait and types.

Abstracts trash operations behind a trait so the implementation can be swapped (system trash, WASI, pure-Rust disk trash, etc.) without changing builtins.

Structs§

TrashEntry
A trashed item, independent of backend.
TrashId
Opaque trash item identifier.

Enums§

TrashError
Errors from trash operations.

Traits§

TrashBackend
Backend trait for trash operations.

Functions§

find_restore_match
Find restore matches: exact (1) wins, else substring.