pub struct RescanModuleAction {
pub module_id: String,
pub action: RescanModuleActionKind,
pub changed: Vec<String>,
pub drain_timeout_ms: Option<u64>,
pub busy_gauges: Vec<BusyGaugeReading>,
}Expand description
One module’s entry in a candidate preview.
Fields§
§module_id: String§action: RescanModuleActionKind§changed: Vec<String>For restart and reload: which parts of the module’s entry changed,
from program, arguments, environment, protocol, reserved,
reserved_prefixes, overlap and health. A newer daemon may send
other names, so readers must not treat this list as complete.
drain_timeout_ms: Option<u64>For restart and stop: how long, in ms, the module’s drain will wait
for in-flight work to finish before it is torn down.
busy_gauges: Vec<BusyGaugeReading>For restart and stop: each busy gauge the module’s registration
declares, in declaration order, with its value from the daemon’s
cached health metrics. The drain waits for these gauges to read zero.
Trait Implementations§
Source§impl Clone for RescanModuleAction
impl Clone for RescanModuleAction
Source§impl Debug for RescanModuleAction
impl Debug for RescanModuleAction
Source§impl<'de> Deserialize<'de> for RescanModuleAction
impl<'de> Deserialize<'de> for RescanModuleAction
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
impl Eq for RescanModuleAction
Source§impl PartialEq for RescanModuleAction
impl PartialEq for RescanModuleAction
Source§impl Serialize for RescanModuleAction
impl Serialize for RescanModuleAction
impl StructuralPartialEq for RescanModuleAction
Auto Trait Implementations§
impl Forget for RescanModuleAction
impl Freeze for RescanModuleAction
impl RefUnwindSafe for RescanModuleAction
impl Send for RescanModuleAction
impl Sync for RescanModuleAction
impl Unpin for RescanModuleAction
impl UnsafeUnpin for RescanModuleAction
impl UnwindSafe for RescanModuleAction
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