pub enum ControllerCommand {
CreateActor(CreateActor),
StartActor(StartActor),
StopActor(StopActor),
RemoveActor(RemoveActor),
CreateStrategy(CreateStrategy),
StartStrategy(StartStrategy),
StopStrategy(StopStrategy),
ExitMarket(StrategyId),
RemoveStrategy(RemoveStrategy),
}Expand description
Commands handled by the Controller.
Variants§
CreateActor(CreateActor)
StartActor(StartActor)
StopActor(StopActor)
RemoveActor(RemoveActor)
CreateStrategy(CreateStrategy)
StartStrategy(StartStrategy)
StopStrategy(StopStrategy)
ExitMarket(StrategyId)
RemoveStrategy(RemoveStrategy)
Trait Implementations§
Source§impl Clone for ControllerCommand
impl Clone for ControllerCommand
Source§fn clone(&self) -> ControllerCommand
fn clone(&self) -> ControllerCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControllerCommand
impl Debug for ControllerCommand
Source§impl From<CreateActor> for ControllerCommand
impl From<CreateActor> for ControllerCommand
Source§fn from(command: CreateActor) -> Self
fn from(command: CreateActor) -> Self
Converts to this type from the input type.
Source§impl From<CreateStrategy> for ControllerCommand
impl From<CreateStrategy> for ControllerCommand
Source§fn from(command: CreateStrategy) -> Self
fn from(command: CreateStrategy) -> Self
Converts to this type from the input type.
Source§impl From<RemoveActor> for ControllerCommand
impl From<RemoveActor> for ControllerCommand
Source§fn from(command: RemoveActor) -> Self
fn from(command: RemoveActor) -> Self
Converts to this type from the input type.
Source§impl From<RemoveStrategy> for ControllerCommand
impl From<RemoveStrategy> for ControllerCommand
Source§fn from(command: RemoveStrategy) -> Self
fn from(command: RemoveStrategy) -> Self
Converts to this type from the input type.
Source§impl From<StartActor> for ControllerCommand
impl From<StartActor> for ControllerCommand
Source§fn from(command: StartActor) -> Self
fn from(command: StartActor) -> Self
Converts to this type from the input type.
Source§impl From<StartStrategy> for ControllerCommand
impl From<StartStrategy> for ControllerCommand
Source§fn from(command: StartStrategy) -> Self
fn from(command: StartStrategy) -> Self
Converts to this type from the input type.
Source§impl From<StopActor> for ControllerCommand
impl From<StopActor> for ControllerCommand
Source§impl From<StopStrategy> for ControllerCommand
impl From<StopStrategy> for ControllerCommand
Source§fn from(command: StopStrategy) -> Self
fn from(command: StopStrategy) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ControllerCommand
impl RefUnwindSafe for ControllerCommand
impl Send for ControllerCommand
impl Sync for ControllerCommand
impl Unpin for ControllerCommand
impl UnsafeUnpin for ControllerCommand
impl UnwindSafe for ControllerCommand
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