pub enum TrashState {
Trashed,
Pending,
}Expand description
Whether a MediaStore name encodes the 30-day trashed state or the 7-day
pending state.
Variants§
Trashed
.trashed-… — the 30-day deferred-deletion bin.
Pending
.pending-… — the 7-day pending mechanism.
Implementations§
Source§impl TrashState
impl TrashState
Sourcepub fn default_retention_secs(self) -> i64
pub fn default_retention_secs(self) -> i64
The default retention window AOSP applies for this state, in seconds (30 days trashed, 7 days pending).
Trait Implementations§
Source§impl Clone for TrashState
impl Clone for TrashState
Source§fn clone(&self) -> TrashState
fn clone(&self) -> TrashState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TrashState
Source§impl Debug for TrashState
impl Debug for TrashState
impl Eq for TrashState
Source§impl PartialEq for TrashState
impl PartialEq for TrashState
Source§fn eq(&self, other: &TrashState) -> bool
fn eq(&self, other: &TrashState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TrashState
Auto Trait Implementations§
impl Freeze for TrashState
impl RefUnwindSafe for TrashState
impl Send for TrashState
impl Sync for TrashState
impl Unpin for TrashState
impl UnsafeUnpin for TrashState
impl UnwindSafe for TrashState
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