pub struct Discard { /* private fields */ }Expand description
A planned discard. Private fields; the sole constructor checks the plan’s scheme — C14’s type half.
Implementations§
Source§impl Discard
impl Discard
Sourcepub fn new(
paths: Vec<Address>,
plan: Restoration,
taint: TaintSet,
total_bytes: ByteLen,
) -> Result<Discard, AxError>
pub fn new( paths: Vec<Address>, plan: Restoration, taint: TaintSet, total_bytes: ByteLen, ) -> Result<Discard, AxError>
Restoration is mandatory and scheme-checked: Tracked wants
file:, Interred wants cas:, Rebuildable wants a non-empty
reason — violations are E_DISCARD_IRREVERSIBLE (an unparsable
plan is no plan). Empty paths are E_INVALID_ARGS.
pub fn paths(&self) -> &[Address]
pub fn plan(&self) -> &Restoration
pub fn taint(&self) -> &TaintSet
pub fn total_bytes(&self) -> ByteLen
Trait Implementations§
impl Eq for Discard
impl StructuralPartialEq for Discard
Auto Trait Implementations§
impl Freeze for Discard
impl RefUnwindSafe for Discard
impl Send for Discard
impl Sync for Discard
impl Unpin for Discard
impl UnsafeUnpin for Discard
impl UnwindSafe for Discard
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