Skip to main content

Timing

Struct Timing 

Source
pub struct Timing {
Show 33 fields pub layer_height_um: Option<u32>, pub normal_exposure_ms: Option<u32>, pub bottom_exposure_ms: Option<u32>, pub bottom_layer_count: Option<u32>, pub transition_layer_count: Option<u32>, pub lift_slow_distance_um: Option<u32>, pub lift_slow_speed_um_min: Option<u32>, pub lift_fast_distance_um: Option<u32>, pub lift_fast_speed_um_min: Option<u32>, pub retract_fast_distance_um: Option<u32>, pub retract_fast_speed_um_min: Option<u32>, pub retract_slow_distance_um: Option<u32>, pub retract_slow_speed_um_min: Option<u32>, pub bottom_lift_slow_distance_um: Option<u32>, pub bottom_lift_slow_speed_um_min: Option<u32>, pub bottom_lift_fast_distance_um: Option<u32>, pub bottom_lift_fast_speed_um_min: Option<u32>, pub bottom_retract_fast_distance_um: Option<u32>, pub bottom_retract_fast_speed_um_min: Option<u32>, pub bottom_retract_slow_distance_um: Option<u32>, pub bottom_retract_slow_speed_um_min: Option<u32>, pub wait_time_before_cure_ms: Option<u32>, pub wait_time_after_cure_ms: Option<u32>, pub wait_time_after_lift_ms: Option<u32>, pub bottom_wait_time_before_cure_ms: Option<u32>, pub bottom_wait_time_after_cure_ms: Option<u32>, pub bottom_wait_time_after_lift_ms: Option<u32>, pub light_pwm: Option<u32>, pub bottom_light_pwm: Option<u32>, pub chamber_temperature_c: Option<f64>, pub vat_temperature_c: Option<f64>, pub cure_curve: Option<CureCurve>, pub extra: Map<String, Value>,
}
Expand description

The timing, motion, PWM and temperature namespace shared by META, a META.sectors entry, PROF.settings and an LROV payload.

Every field is optional: META requires some of them, a sector entry or an LROV payload supplies only what it changes, and a PROF supplies all of them. A bottom_* field that is absent equals its normal counterpart ([spec/14-layer-timing.md] section 8).

Fields§

§layer_height_um: Option<u32>

Default layer thickness in micrometers.

§normal_exposure_ms: Option<u32>

Exposure time for normal layers, in milliseconds.

§bottom_exposure_ms: Option<u32>

Exposure time for bottom layers, in milliseconds.

§bottom_layer_count: Option<u32>

How many layers the bottom range holds.

§transition_layer_count: Option<u32>

How many layers interpolate between bottom and normal.

§lift_slow_distance_um: Option<u32>

Lift, slow segment: the peel. Distance of that one segment.

§lift_slow_speed_um_min: Option<u32>

Lift, slow segment speed.

§lift_fast_distance_um: Option<u32>

Lift, fast segment: the remainder. 0 makes the lift single-stage.

§lift_fast_speed_um_min: Option<u32>

Lift, fast segment speed.

§retract_fast_distance_um: Option<u32>

Retract, fast segment: most of the return. Distance of that one segment.

§retract_fast_speed_um_min: Option<u32>

Retract, fast segment speed.

§retract_slow_distance_um: Option<u32>

Retract, slow segment: the final approach. 0 makes the retract single-stage.

§retract_slow_speed_um_min: Option<u32>

Retract, slow segment speed.

§bottom_lift_slow_distance_um: Option<u32>

Bottom-layer lift, slow segment distance.

§bottom_lift_slow_speed_um_min: Option<u32>

Bottom-layer lift, slow segment speed.

§bottom_lift_fast_distance_um: Option<u32>

Bottom-layer lift, fast segment distance.

§bottom_lift_fast_speed_um_min: Option<u32>

Bottom-layer lift, fast segment speed.

§bottom_retract_fast_distance_um: Option<u32>

Bottom-layer retract, fast segment distance.

§bottom_retract_fast_speed_um_min: Option<u32>

Bottom-layer retract, fast segment speed.

§bottom_retract_slow_distance_um: Option<u32>

Bottom-layer retract, slow segment distance.

§bottom_retract_slow_speed_um_min: Option<u32>

Bottom-layer retract, slow segment speed.

§wait_time_before_cure_ms: Option<u32>

Pause before curing, in milliseconds.

§wait_time_after_cure_ms: Option<u32>

Pause after curing, in milliseconds.

§wait_time_after_lift_ms: Option<u32>

Pause after the lift, in milliseconds.

§bottom_wait_time_before_cure_ms: Option<u32>

Bottom-layer pause before curing, in milliseconds.

§bottom_wait_time_after_cure_ms: Option<u32>

Bottom-layer pause after curing, in milliseconds.

§bottom_wait_time_after_lift_ms: Option<u32>

Bottom-layer pause after the lift, in milliseconds.

§light_pwm: Option<u32>

Light PWM for normal layers, 0-255.

§bottom_light_pwm: Option<u32>

Light PWM for bottom layers, 0-255.

§chamber_temperature_c: Option<f64>

Chamber target temperature in Celsius.

§vat_temperature_c: Option<f64>

Vat target temperature in Celsius.

§cure_curve: Option<CureCurve>

Experimental resin working curve.

§extra: Map<String, Value>

Unknown keys, preserved verbatim.

In a META payload the schema’s own extra object also lands here, under the key "extra"; see Timing::vendor_extra.

Implementations§

Source§

impl Timing

Source

pub fn vendor_extra(&self) -> Option<&Value>

The META or PROF extra object, if the payload carried one.

Source

pub fn field_names() -> &'static [&'static str]

Every field name this namespace defines, in schema order.

Source

pub fn missing_from(object: &Map<String, Value>, names: &[&str]) -> Vec<String>

Whether every field in names is present in the raw payload.

self alone cannot answer this: a field that was absent and a field that was explicitly null deserialize alike, so presence must be read from the raw JSON object.

Trait Implementations§

Source§

impl Clone for Timing

Source§

fn clone(&self) -> Timing

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 Timing

Source§

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

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

impl Default for Timing

Source§

fn default() -> Timing

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Timing

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Timing

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl Serialize for Timing

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Timing

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V