pub struct DelaySpec { /* private fields */ }Expand description
The spec for a delay node: a durable wait that parks the run, then
continues the walk.
Implementations§
Source§impl DelaySpec
impl DelaySpec
Sourcepub fn new(id: impl Into<String>, seconds: u64) -> Self
pub fn new(id: impl Into<String>, seconds: u64) -> Self
Starts a delay spec with its required fields: the node id and how long
the run waits, in whole seconds. A duration rather than an instant, so
the document stays runnable more than once; see DelayNode. The
wait’s positivity is checked by [crate::validate], not here.
Sourcepub fn name(self, name: impl Into<String>) -> Self
pub fn name(self, name: impl Into<String>) -> Self
Sets a short display label for this node. Bounds (a 64-character cap,
not empty or all whitespace) are checked by [crate::validate], not
here; see crate::document’s “The optional node display name”
section for why this field, unlike an agent’s own name, is part of
the graph’s content hash.
Trait Implementations§
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