pub struct Chain {
pub id: String,
/* private fields */
}Expand description
A sequence of jobs.
Fields§
§id: StringA name for the whole, so progress for the pipeline has one key. Generated when not given.
Implementations§
Source§impl Chain
impl Chain
Sourcepub fn named(self, id: impl Into<String>) -> Chain
pub fn named(self, id: impl Into<String>) -> Chain
Name the chain yourself — an order id, a video id — so the key a UI watches is one it already knows.
pub fn then<J: Job>(self, next: J) -> Chain
Sourcepub fn then_queued(self, next: QueuedJob) -> Chain
pub fn then_queued(self, next: QueuedJob) -> Chain
Add a step that is already an envelope, for a job with no Rust type.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn into_queued(self) -> QueuedJob
pub fn into_queued(self) -> QueuedJob
The first step, carrying the rest and the chain’s id. This is what is pushed; the worker peels one step off each time one succeeds.
Trait Implementations§
impl StructuralPartialEq for Chain
Auto Trait Implementations§
impl Freeze for Chain
impl RefUnwindSafe for Chain
impl Send for Chain
impl Sync for Chain
impl Unpin for Chain
impl UnsafeUnpin for Chain
impl UnwindSafe for Chain
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