pub struct MixedWorkUnit {
pub sequence: u64,
pub queue_class: MixedWorkQueueClass,
pub unit_type: MixedWorkUnitType,
pub resident_artifact_id: ResidentArtifactId,
pub output_slab_id: OutputSlabId,
pub watchdog_budget_ticks: u32,
pub payload_digest: u64,
}Expand description
One resident mixed-work unit.
Fields§
§sequence: u64Stable sequence number used for deterministic drain and output evidence.
queue_class: MixedWorkQueueClassScheduler queue class.
unit_type: MixedWorkUnitTypeWork-unit kind inside the queue class.
resident_artifact_id: ResidentArtifactIdResident artifact consumed by this work unit.
output_slab_id: OutputSlabIdOutput slab written by this work unit.
watchdog_budget_ticks: u32Per-unit watchdog budget in scheduler ticks.
payload_digest: u64Caller-owned payload digest. Runtime treats payload bytes as opaque.
Implementations§
Source§impl MixedWorkUnit
impl MixedWorkUnit
Sourcepub const fn new(
sequence: u64,
queue_class: MixedWorkQueueClass,
unit_type: MixedWorkUnitType,
resident_artifact_id: ResidentArtifactId,
output_slab_id: OutputSlabId,
watchdog_budget_ticks: u32,
payload_digest: u64,
) -> Self
pub const fn new( sequence: u64, queue_class: MixedWorkQueueClass, unit_type: MixedWorkUnitType, resident_artifact_id: ResidentArtifactId, output_slab_id: OutputSlabId, watchdog_budget_ticks: u32, payload_digest: u64, ) -> Self
Construct one mixed-work unit.
Trait Implementations§
Source§impl Clone for MixedWorkUnit
impl Clone for MixedWorkUnit
Source§fn clone(&self) -> MixedWorkUnit
fn clone(&self) -> MixedWorkUnit
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 MixedWorkUnit
Source§impl Debug for MixedWorkUnit
impl Debug for MixedWorkUnit
impl Eq for MixedWorkUnit
Source§impl Hash for MixedWorkUnit
impl Hash for MixedWorkUnit
Source§impl PartialEq for MixedWorkUnit
impl PartialEq for MixedWorkUnit
Source§fn eq(&self, other: &MixedWorkUnit) -> bool
fn eq(&self, other: &MixedWorkUnit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MixedWorkUnit
Auto Trait Implementations§
impl Freeze for MixedWorkUnit
impl RefUnwindSafe for MixedWorkUnit
impl Send for MixedWorkUnit
impl Sync for MixedWorkUnit
impl Unpin for MixedWorkUnit
impl UnsafeUnpin for MixedWorkUnit
impl UnwindSafe for MixedWorkUnit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.