pub struct BoxedProc { /* private fields */ }Implementations§
Source§impl BoxedProc
impl BoxedProc
pub fn new(id: u8, process: Box<dyn Process>) -> Self
pub fn new_with_offset( id: u8, process: Box<dyn Process>, status: ProcStatus, offset: usize, ) -> Self
pub fn prepare(&self) -> OpsResult<()>
pub fn run(&self) -> OpsResult<()>
pub fn clean(&self) -> OpsResult<()>
pub fn revert_prepare(&self) -> OpsResult<()>
pub fn revert_run(&self) -> OpsResult<()>
pub fn status(&self) -> ProcStatus
pub fn offcet(&self) -> usize
pub fn id(&self) -> u8
pub fn set_offset(&mut self, offset: usize)
pub fn encode(&self) -> Vec<u8> ⓘ
pub fn print(&self)
Auto Trait Implementations§
impl !Freeze for BoxedProc
impl !RefUnwindSafe for BoxedProc
impl !Send for BoxedProc
impl !Sync for BoxedProc
impl !UnwindSafe for BoxedProc
impl Unpin for BoxedProc
impl UnsafeUnpin for BoxedProc
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