pub enum DelaySpec {
Before(String),
BeforeAfter {
before: Option<String>,
after: Option<String>,
},
}Expand description
Per-op delay specification. Two surface forms on YAML:
- Bare string
delay: <name>→Before(<name>): a GK binding name producing the pre-op delay value (u64 ns, f64 ms). - Map
delay: { before: <name>, after: <name> }→BeforeAfter: independent pre-op and post-op delays. Both subkeys are optional; an empty map is a parse error.
Variants§
Before(String)
Single pre-op delay. Equivalent to BeforeAfter { Some, None } at runtime; the discriminant exists so YAML round-trip preserves the author’s chosen surface form.
BeforeAfter
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DelaySpec
impl<'de> Deserialize<'de> for DelaySpec
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DelaySpec
impl StructuralPartialEq for DelaySpec
Auto Trait Implementations§
impl Freeze for DelaySpec
impl RefUnwindSafe for DelaySpec
impl Send for DelaySpec
impl Sync for DelaySpec
impl Unpin for DelaySpec
impl UnsafeUnpin for DelaySpec
impl UnwindSafe for DelaySpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.