pub struct WorkflowList { /* private fields */ }Expand description
The workflow table as it accumulates pages.
Infinite scroll appends pages; a refresh or a new query replaces them. Two properties have to hold no matter which happened:
- Sorted newest-first. The server does not order
ListWorkflowExecutions, and the dev server’s standard visibility store rejectsORDER BYoutright, so the ordering is this type’s job rather than the query’s. - No duplicates. Pages are snapshots of a set that is changing underneath them, so the same execution can legitimately arrive on two pages. A table that shows a workflow twice makes the operator doubt the whole screen.
Implementations§
Source§impl WorkflowList
impl WorkflowList
pub fn rows(&self) -> &[WorkflowRow]
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn tokens(&self) -> &[(String, Vec<u8>)]
pub fn tokens(&self) -> &[(String, Vec<u8>)]
Per-namespace continuation tokens to send with the next page request.
Sourcepub fn reset(&mut self, rows: Vec<WorkflowRow>, tokens: Vec<(String, Vec<u8>)>)
pub fn reset(&mut self, rows: Vec<WorkflowRow>, tokens: Vec<(String, Vec<u8>)>)
Start over: a new query, or a refresh of the current one.
Trait Implementations§
Source§impl Clone for WorkflowList
impl Clone for WorkflowList
Source§fn clone(&self) -> WorkflowList
fn clone(&self) -> WorkflowList
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkflowList
impl Debug for WorkflowList
Source§impl Default for WorkflowList
impl Default for WorkflowList
Source§fn default() -> WorkflowList
fn default() -> WorkflowList
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WorkflowList
impl RefUnwindSafe for WorkflowList
impl Send for WorkflowList
impl Sync for WorkflowList
impl Unpin for WorkflowList
impl UnsafeUnpin for WorkflowList
impl UnwindSafe for WorkflowList
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