pub enum EngineCommand {
UpdateMetrics(ResourceMetrics),
UpdateConfig(LighthouseConfig),
GetRecommendation {
resource_id: ResourceId,
response: Sender<LighthouseResult<Option<ScaleAction>>>,
},
GetStatus {
response: Sender<EngineStatus>,
},
Shutdown,
}
Expand description
Commands that can be sent to the lighthouse engine
Variants§
UpdateMetrics(ResourceMetrics)
Add or update metrics for a resource
UpdateConfig(LighthouseConfig)
Update the configuration
GetRecommendation
Request scaling recommendation for a resource
GetStatus
Get current engine status
Fields
§
response: Sender<EngineStatus>
Shutdown
Shutdown the engine
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EngineCommand
impl !RefUnwindSafe for EngineCommand
impl Send for EngineCommand
impl Sync for EngineCommand
impl Unpin for EngineCommand
impl !UnwindSafe for EngineCommand
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