pub struct CoreConfig {
pub envelope: SafetyEnvelope,
pub context_command: String,
pub recent_events: u32,
pub expiry_poll: Duration,
pub camera_snapshot_url: Option<WebAddress>,
pub detector_resume_grace: Duration,
pub observation_interval: Duration,
pub spools: SpoolPolicy,
pub printer_poll: Duration,
pub unattended_window: Duration,
}Expand description
The server configuration supervision reads.
Fields§
§envelope: SafetyEnvelopeThe operator’s safety envelope: what any actor may ask for at all.
context_command: StringThe command a supervision turn runs to read the print’s context.
PRINT_ID_PLACEHOLDER in it is replaced with the print’s own
identifier, so that a turn reads the context of the print it is about.
recent_events: u32How many of the print’s own events a turn is given, newest first.
expiry_poll: DurationHow often the expiry driver looks for an intervention that is due.
camera_snapshot_url: Option<WebAddress>Where a fresh frame of the print is fetched from, when a camera is configured.
detector_resume_grace: DurationHow long after the agent’s last adjustment a print the detector paused is resumed.
observation_interval: DurationHow often every active print is given a periodic observation.
spools: SpoolPolicyHow spools are checked before a print, and the margin asked for.
printer_poll: DurationHow often the printer watch reads the machine.
unattended_window: DurationHow long after an interrupted or failed ending the printer acting
on its own is recorded.
Implementations§
Source§impl CoreConfig
impl CoreConfig
Sourcepub fn new(envelope: SafetyEnvelope, context_command: String) -> Self
pub fn new(envelope: SafetyEnvelope, context_command: String) -> Self
The configuration for one envelope, with this crate’s own defaults.
Sourcepub fn context_command_for(&self, print_id: PrintId) -> String
pub fn context_command_for(&self, print_id: PrintId) -> String
The context command for one print.