pub struct DeviceCommandLogicalWork { /* private fields */ }Expand description
Core-owned logical work bound to a node-scoped device command.
Providers describe their own command work directly. Core-created commands, such as scratch initialization, use this value so backend-native attribution remains bound to the exact batch node instead of inventing a participant or token count.
Implementations§
Source§impl DeviceCommandLogicalWork
impl DeviceCommandLogicalWork
pub fn new( batching_form: DeviceBatchingForm, participant_count: u32, token_count: u64, ) -> Result<Self, VNextError>
pub fn for_participant_range( batching_form: DeviceBatchingForm, participant_start: u32, participant_count: u32, token_count: u64, ) -> Result<Self, VNextError>
pub const fn batching_form(self) -> DeviceBatchingForm
pub const fn participant_start(self) -> u32
pub const fn participant_count(self) -> u32
pub const fn participant_end(self) -> u32
pub const fn token_count(self) -> u64
Trait Implementations§
Source§impl Clone for DeviceCommandLogicalWork
impl Clone for DeviceCommandLogicalWork
Source§fn clone(&self) -> DeviceCommandLogicalWork
fn clone(&self) -> DeviceCommandLogicalWork
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 DeviceCommandLogicalWork
Source§impl Debug for DeviceCommandLogicalWork
impl Debug for DeviceCommandLogicalWork
impl Eq for DeviceCommandLogicalWork
Source§impl PartialEq for DeviceCommandLogicalWork
impl PartialEq for DeviceCommandLogicalWork
Source§impl Serialize for DeviceCommandLogicalWork
impl Serialize for DeviceCommandLogicalWork
impl StructuralPartialEq for DeviceCommandLogicalWork
Auto Trait Implementations§
impl Freeze for DeviceCommandLogicalWork
impl RefUnwindSafe for DeviceCommandLogicalWork
impl Send for DeviceCommandLogicalWork
impl Sync for DeviceCommandLogicalWork
impl Unpin for DeviceCommandLogicalWork
impl UnsafeUnpin for DeviceCommandLogicalWork
impl UnwindSafe for DeviceCommandLogicalWork
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