pub struct StopStrategy {
pub strategy_id: StrategyId,
pub reason: String,
}Expand description
Stop strategy command - requests the engine to stop a strategy
Fields§
§strategy_id: StrategyIdThe strategy requesting to stop
reason: StringReason for stopping
Implementations§
Source§impl StopStrategy
impl StopStrategy
Sourcepub fn new(strategy_id: StrategyId, reason: impl Into<String>) -> Self
pub fn new(strategy_id: StrategyId, reason: impl Into<String>) -> Self
Create a command requesting strategy shutdown.
The engine decides when the stop callback runs; this command only records the strategy and reason.
Trait Implementations§
Source§impl Clone for StopStrategy
impl Clone for StopStrategy
Source§fn clone(&self) -> StopStrategy
fn clone(&self) -> StopStrategy
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 StopStrategy
impl Debug for StopStrategy
Source§impl<'de> Deserialize<'de> for StopStrategy
impl<'de> Deserialize<'de> for StopStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StopStrategy
impl RefUnwindSafe for StopStrategy
impl Send for StopStrategy
impl Sync for StopStrategy
impl Unpin for StopStrategy
impl UnsafeUnpin for StopStrategy
impl UnwindSafe for StopStrategy
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