pub struct TradingCommandMessage { /* private fields */ }Expand description
A deferred trading command and its direct endpoint.
Implementations§
Source§impl TradingCommandMessage
impl TradingCommandMessage
Sourcepub const fn new(endpoint: MStr<Endpoint>, command: TradingCommand) -> Self
pub const fn new(endpoint: MStr<Endpoint>, command: TradingCommand) -> Self
Creates a deferred trading command message.
Sourcepub const fn command(&self) -> &TradingCommand
pub const fn command(&self) -> &TradingCommand
Returns the trading command carried by this message.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TradingCommandMessage
impl RefUnwindSafe for TradingCommandMessage
impl Send for TradingCommandMessage
impl Sync for TradingCommandMessage
impl Unpin for TradingCommandMessage
impl UnsafeUnpin for TradingCommandMessage
impl UnwindSafe for TradingCommandMessage
Blanket Implementations§
impl<T> Allocation for T
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