pub struct WorkGraphMachine;Implementations§
Source§impl WorkGraphMachine
impl WorkGraphMachine
pub fn validate_item_projection(item: &WorkItem) -> Result<(), WorkGraphError>
pub fn create_item( request: CreateWorkItemRequest, realm_id: String, namespace: WorkNamespace, now: DateTime<Utc>, ) -> Result<(WorkItem, WorkGraphEvent), WorkGraphError>
pub fn update_item( item: WorkItem, request: UpdateWorkItemRequest, now: DateTime<Utc>, ) -> Result<(WorkItem, WorkGraphEvent), WorkGraphError>
pub fn claim_item( item: WorkItem, request: ClaimWorkItemRequest, now: DateTime<Utc>, ) -> Result<(WorkItem, WorkGraphEvent), WorkGraphError>
pub fn claim_ready_item( item: WorkItem, request: ClaimWorkItemRequest, now: DateTime<Utc>, ) -> Result<(WorkItem, WorkGraphEvent), WorkGraphError>
pub fn refresh_eligibility( item: WorkItem, unresolved_blocker_count: u64, now: DateTime<Utc>, ) -> Result<Option<(WorkItem, WorkGraphEvent)>, WorkGraphError>
pub fn release_item( item: WorkItem, request: ReleaseWorkItemRequest, now: DateTime<Utc>, ) -> Result<(WorkItem, WorkGraphEvent), WorkGraphError>
pub fn block_item( item: WorkItem, expected_revision: u64, now: DateTime<Utc>, ) -> Result<(WorkItem, WorkGraphEvent), WorkGraphError>
pub fn close_item( item: WorkItem, request: CloseWorkItemRequest, now: DateTime<Utc>, ) -> Result<(WorkItem, WorkGraphEvent), WorkGraphError>
pub fn add_evidence( item: WorkItem, request: AddEvidenceRequest, now: DateTime<Utc>, ) -> Result<(WorkItem, WorkGraphEvent), WorkGraphError>
pub fn is_ready(item: &WorkItem, now: DateTime<Utc>) -> bool
pub fn ready_items(items: Vec<WorkItem>, now: DateTime<Utc>) -> Vec<WorkItem>
pub fn validate_link( edge: &WorkEdge, existing_items: &[WorkItem], existing_edges: &[WorkEdge], ) -> Result<(), WorkGraphError>
Trait Implementations§
Source§impl Clone for WorkGraphMachine
impl Clone for WorkGraphMachine
Source§fn clone(&self) -> WorkGraphMachine
fn clone(&self) -> WorkGraphMachine
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 WorkGraphMachine
impl Debug for WorkGraphMachine
Source§impl Default for WorkGraphMachine
impl Default for WorkGraphMachine
Source§fn default() -> WorkGraphMachine
fn default() -> WorkGraphMachine
Returns the “default value” for a type. Read more
impl Copy for WorkGraphMachine
Auto Trait Implementations§
impl Freeze for WorkGraphMachine
impl RefUnwindSafe for WorkGraphMachine
impl Send for WorkGraphMachine
impl Sync for WorkGraphMachine
impl Unpin for WorkGraphMachine
impl UnsafeUnpin for WorkGraphMachine
impl UnwindSafe for WorkGraphMachine
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