Skip to main content

CoreConfig

Struct CoreConfig 

Source
pub struct CoreConfig {
Show 15 fields pub envelope: SafetyEnvelope, pub context_command: String, pub recent_events: u32, pub expiry_poll: Duration, pub camera_snapshot_url: Option<WebAddress>, pub camera_retry: CameraRetry, pub detector_resume_grace: Duration, pub observation_interval: Duration, pub spools: SpoolPolicy, pub sheets: SheetTable, pub printer_poll: Duration, pub unattended_window: Duration, pub recovery: Option<RecoveryConfig>, pub recovery_grants: RecoveryGrants, pub gcode_spool_dir: Option<PathBuf>,
}
Expand description

The server configuration supervision reads.

Fields§

§envelope: SafetyEnvelope

The operator’s safety envelope: what any actor may ask for at all.

§context_command: String

The 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: u32

How many of the print’s own events a turn is given, newest first.

§expiry_poll: Duration

How 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.

§camera_retry: CameraRetry

How often, and how far apart, a fetch the camera answered with a server error is made again.

§detector_resume_grace: Duration

How long after the agent’s last adjustment a print the detector paused is resumed.

§observation_interval: Duration

How often every active print is given a periodic observation.

§spools: SpoolPolicy

How spools are checked before a print, and the margin asked for.

§sheets: SheetTable

Which build sheets each material may be printed on.

§printer_poll: Duration

How often the printer watch reads the machine.

§unattended_window: Duration

How long after an interrupted or failed ending the printer acting on its own is recorded.

§recovery: Option<RecoveryConfig>

The printer’s own facts a recovery is checked against; absent, every recovery action is refused as not configured.

§recovery_grants: RecoveryGrants

Who may ask for which recovery action.

§gcode_spool_dir: Option<PathBuf>

Where each open print’s G-code is spooled as its index is built, so a layer’s toolpath is read back without reading the file again; absent, nothing is spooled and no toolpath can be read.

Implementations§

Source§

impl CoreConfig

Source

pub fn new(envelope: SafetyEnvelope, context_command: String) -> Self

The configuration for one envelope, with this crate’s own defaults.

Source

pub fn context_command_for(&self, print_id: PrintId) -> String

The context command for one print.

Trait Implementations§

Source§

impl Clone for CoreConfig

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CoreConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for CoreConfig

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for CoreConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.