pub enum RunWait {
Interrupt {
interrupt: RunInterrupt,
},
Timer {
timer: RunTimer,
},
}Expand description
One explicit condition suspending semantic run progress.
Variants§
Interrupt
Wait for an authenticated and authorized interrupt resolution record.
Fields
§
interrupt: RunInterruptImmutable unresolved interrupt marker.
Timer
Wait for a durable scheduler observation at or after a due instant.
Implementations§
Source§impl RunWait
impl RunWait
Sourcepub const fn interrupt(interrupt: RunInterrupt) -> Self
pub const fn interrupt(interrupt: RunInterrupt) -> Self
Constructs an interrupt wait.
Sourcepub const fn as_interrupt(&self) -> Option<&RunInterrupt>
pub const fn as_interrupt(&self) -> Option<&RunInterrupt>
Returns the interrupt marker when this is an interrupt wait.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunWait
impl<'de> Deserialize<'de> for RunWait
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RunWait
Source§impl JsonSchema for RunWait
impl JsonSchema for RunWait
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 RunWait
Auto Trait Implementations§
impl Forget for RunWait
impl Freeze for RunWait
impl Move for RunWait
impl RefUnwindSafe for RunWait
impl Send for RunWait
impl Sync for RunWait
impl Unpin for RunWait
impl UnsafeUnpin for RunWait
impl UnwindSafe for RunWait
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