pub struct Ops { /* private fields */ }Implementations§
Source§impl Ops
impl Ops
pub fn empty(path: &Path) -> OpsResult<Ops>
pub fn new(path: &Path, ops: Vec<BoxedProc>) -> OpsResult<Self>
pub fn add<T: Process + 'static>(&mut self, process: T) -> OpsResult<()>
pub fn set_revert(&mut self, is_revert: bool)
pub fn processes(&self) -> &[BoxedProc]
pub fn all(self) -> OpsResult<()>
pub fn revert(&mut self) -> OpsResult<()>
pub fn print(&self)
Auto Trait Implementations§
impl Freeze for Ops
impl !RefUnwindSafe for Ops
impl !Send for Ops
impl !Sync for Ops
impl Unpin for Ops
impl !UnwindSafe for Ops
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