pub struct CommandContext {
pub now_ms: f64,
pub pass_in_flight: bool,
}Expand description
Context supplied while a rank applies a scheduler command.
Fields§
§now_ms: f64Driver clock at which the command becomes visible.
pass_in_flight: boolWhether this logical engine has a committed pass awaiting completion.
This is group-wide. It is true for an otherwise idle sibling rank
while another rank is executing, preserving the attention-DP barrier.
Implementations§
Source§impl CommandContext
impl CommandContext
Sourcepub const fn allow_immediate_admission(self) -> bool
pub const fn allow_immediate_admission(self) -> bool
Whether a command may immediately admit work into the current pass.
Trait Implementations§
Source§impl Clone for CommandContext
impl Clone for CommandContext
Source§fn clone(&self) -> CommandContext
fn clone(&self) -> CommandContext
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 moreimpl Copy for CommandContext
Source§impl Debug for CommandContext
impl Debug for CommandContext
Source§impl PartialEq for CommandContext
impl PartialEq for CommandContext
impl StructuralPartialEq for CommandContext
Auto Trait Implementations§
impl Freeze for CommandContext
impl RefUnwindSafe for CommandContext
impl Send for CommandContext
impl Sync for CommandContext
impl Unpin for CommandContext
impl UnsafeUnpin for CommandContext
impl UnwindSafe for CommandContext
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