pub enum ParamNotification {
ParamUpdate {
asset: String,
timestamp: String,
params: OptimizedParams,
},
OptimizationStarted {
timestamp: String,
assets: Vec<String>,
},
OptimizationComplete {
timestamp: String,
successful: u32,
failed: u32,
assets: Vec<String>,
},
OptimizationFailed {
timestamp: String,
asset: String,
error: String,
},
}Expand description
Notification types from the optimizer
Variants§
ParamUpdate
Single asset params updated
OptimizationStarted
Optimization cycle started
OptimizationComplete
Optimization cycle completed
OptimizationFailed
Single asset optimization failed
Trait Implementations§
Source§impl Clone for ParamNotification
impl Clone for ParamNotification
Source§fn clone(&self) -> ParamNotification
fn clone(&self) -> ParamNotification
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 ParamNotification
impl Debug for ParamNotification
Source§impl<'de> Deserialize<'de> for ParamNotification
impl<'de> Deserialize<'de> for ParamNotification
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 ParamNotification
impl RefUnwindSafe for ParamNotification
impl Send for ParamNotification
impl Sync for ParamNotification
impl Unpin for ParamNotification
impl UnsafeUnpin for ParamNotification
impl UnwindSafe for ParamNotification
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