pub struct FutureEngineTransaction { /* private fields */ }Expand description
An in-place FutureQuote mutation that can be committed or rolled back.
Implementations§
Source§impl FutureEngineTransaction
impl FutureEngineTransaction
Sourcepub fn effects(&self) -> &[FutureEffect]
pub fn effects(&self) -> &[FutureEffect]
Effects produced by the staged in-place mutation.
Sourcepub fn has_effects(&self) -> bool
pub fn has_effects(&self) -> bool
Whether external effect processing can be skipped.
Sourcepub fn commit(self) -> Vec<FutureEffect>
pub fn commit(self) -> Vec<FutureEffect>
Keep the in-place engine mutation and return its effects.
Sourcepub fn rollback(self, engine: &mut TradeEngine)
pub fn rollback(self, engine: &mut TradeEngine)
Restore the engine state captured before the mutation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FutureEngineTransaction
impl RefUnwindSafe for FutureEngineTransaction
impl Send for FutureEngineTransaction
impl Sync for FutureEngineTransaction
impl Unpin for FutureEngineTransaction
impl UnsafeUnpin for FutureEngineTransaction
impl UnwindSafe for FutureEngineTransaction
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