pub enum Executions {
AllocatedNoExecutions,
Executed(NonEmpty<Execution>),
}Expand description
The result of executing an order against the order book.
§Example
use clob_sync::prelude::{Executions, Execution, OrderId, Quantity};
use nonempty::NonEmpty;
let no_exec = Executions::AllocatedNoExecutions;
let executed = Executions::Executed(NonEmpty::new(
Execution::FullExecution(OrderId::default())
));Variants§
AllocatedNoExecutions
Order was added to the book without any executions
Executed(NonEmpty<Execution>)
Order was fully or partially executed
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Executions
impl RefUnwindSafe for Executions
impl Send for Executions
impl Sync for Executions
impl Unpin for Executions
impl UnsafeUnpin for Executions
impl UnwindSafe for Executions
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