pub struct DependencyDeclareCommand { /* private fields */ }Expand description
Semantic command for declaring task dependency relationships.
Implementations§
Source§impl DependencyDeclareCommand
impl DependencyDeclareCommand
Sourcepub fn new(
sequence: u64,
task_id: TaskId,
depends_on: Vec<TaskId>,
timestamp: u64,
) -> Self
pub fn new( sequence: u64, task_id: TaskId, depends_on: Vec<TaskId>, timestamp: u64, ) -> Self
Creates a new dependency declaration command.
§Panics (debug builds only)
Panics if depends_on is empty. Empty declarations are rejected by the
mutation authority in all builds; the debug_assert guards against logic
errors in internal callers.
Sourcepub fn depends_on(&self) -> &[TaskId]
pub fn depends_on(&self) -> &[TaskId]
Returns the prerequisite task identifiers.
Trait Implementations§
Source§impl Clone for DependencyDeclareCommand
impl Clone for DependencyDeclareCommand
Source§fn clone(&self) -> DependencyDeclareCommand
fn clone(&self) -> DependencyDeclareCommand
Returns a duplicate of the value. Read more
1.0.0 · 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 DependencyDeclareCommand
impl Debug for DependencyDeclareCommand
Source§impl PartialEq for DependencyDeclareCommand
impl PartialEq for DependencyDeclareCommand
impl Eq for DependencyDeclareCommand
impl StructuralPartialEq for DependencyDeclareCommand
Auto Trait Implementations§
impl Freeze for DependencyDeclareCommand
impl RefUnwindSafe for DependencyDeclareCommand
impl Send for DependencyDeclareCommand
impl Sync for DependencyDeclareCommand
impl Unpin for DependencyDeclareCommand
impl UnsafeUnpin for DependencyDeclareCommand
impl UnwindSafe for DependencyDeclareCommand
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