pub struct DeleteOutcome { /* private fields */ }Expand description
Result returned after a deletion request.
§Examples
use qubit_fs::directory::DeleteOutcome;
let outcome = DeleteOutcome::new(true);
assert!(outcome.already_missing());Implementations§
Source§impl DeleteOutcome
impl DeleteOutcome
Sourcepub const fn new(already_missing: bool) -> Self
pub const fn new(already_missing: bool) -> Self
Creates an outcome. already_missing reports an accepted missing
target.
Sourcepub const fn already_missing(self) -> bool
pub const fn already_missing(self) -> bool
Returns whether a missing target satisfied the request.
Sourcepub const fn with_deleted_entries(self, count: u64) -> Self
pub const fn with_deleted_entries(self, count: u64) -> Self
Attaches the number of deleted entries, when known.
Sourcepub const fn deleted_entries(self) -> Option<u64>
pub const fn deleted_entries(self) -> Option<u64>
Returns the number of deleted entries, when reported.
Trait Implementations§
Source§impl Clone for DeleteOutcome
impl Clone for DeleteOutcome
impl Copy for DeleteOutcome
Source§impl Debug for DeleteOutcome
impl Debug for DeleteOutcome
impl Eq for DeleteOutcome
Source§impl PartialEq for DeleteOutcome
impl PartialEq for DeleteOutcome
impl StructuralPartialEq for DeleteOutcome
Auto Trait Implementations§
impl Freeze for DeleteOutcome
impl RefUnwindSafe for DeleteOutcome
impl Send for DeleteOutcome
impl Sync for DeleteOutcome
impl Unpin for DeleteOutcome
impl UnsafeUnpin for DeleteOutcome
impl UnwindSafe for DeleteOutcome
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