pub struct CoreConfig {
pub envelope: SafetyEnvelope,
pub context_command: String,
pub recent_events: u32,
pub expiry_poll: 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.
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.
Trait Implementations§
Source§impl Clone for CoreConfig
impl Clone for CoreConfig
Source§impl Debug for CoreConfig
impl Debug for CoreConfig
Source§impl PartialEq for CoreConfig
impl PartialEq for CoreConfig
impl StructuralPartialEq for CoreConfig
Auto Trait Implementations§
impl Freeze for CoreConfig
impl RefUnwindSafe for CoreConfig
impl Send for CoreConfig
impl Sync for CoreConfig
impl Unpin for CoreConfig
impl UnsafeUnpin for CoreConfig
impl UnwindSafe for CoreConfig
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