#[non_exhaustive]pub enum Delay {
Seconds(f64),
Plugged,
ZeroOrPlugged,
}Expand description
One available delay setting. Serialized with a kind tag and the seconds as value:
{"kind":"seconds","value":6.0}, {"kind":"plugged"}.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Seconds(f64)
The ejection charge fires this many seconds after burnout: positive, or zero where a file
says so plainly, as a .ork does for a charge at burnout (hpr_io::ork).
Plugged
No ejection charge: the forward closure is plugged.
ZeroOrPlugged
A 0: the RASP spec means an ejection charge at burnout, but most files mean plugged
(docs/format/eng.md). The user or the catalog has to settle which.
Trait Implementations§
impl Copy for Delay
Source§impl<'de> Deserialize<'de> for Delay
impl<'de> Deserialize<'de> for Delay
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Delay
impl JsonSchema for Delay
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Delay
Auto Trait Implementations§
impl Freeze for Delay
impl RefUnwindSafe for Delay
impl Send for Delay
impl Sync for Delay
impl Unpin for Delay
impl UnsafeUnpin for Delay
impl UnwindSafe for Delay
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