pub struct BatchWorkShape { /* private fields */ }Expand description
Immutable work authority for one exact non-empty participant set. The dimensions remain private so downstream claims and dispatch can only use the shape that core bound to this participant topology and fingerprint.
Implementations§
Source§impl BatchWorkShape
impl BatchWorkShape
pub fn participants(&self) -> &[BatchParticipantAuthority]
pub fn participant_work(&self) -> &[BatchParticipantTokenSpan]
pub fn participant_token_ranges(&self) -> &[BatchParticipantTokenRange]
pub fn resource_work(&self) -> &ResourceWorkShape
pub const fn immediate_sequences(&self) -> u32
pub const fn immediate_tokens(&self) -> u64
pub const fn immediate_pages(&self) -> u64
pub const fn fit_sequences(&self) -> u32
pub const fn fit_tokens(&self) -> u64
pub const fn fit_pages(&self) -> u64
pub fn fingerprint(&self) -> &str
Sourcepub fn logical_work_fingerprint(&self) -> &str
pub fn logical_work_fingerprint(&self) -> &str
Stable logical work identity for comparisons across fresh admissions.
Unlike Self::fingerprint, this excludes request and sequence
authorities while retaining the exact token and committed-page shape.
Trait Implementations§
Source§impl Clone for BatchWorkShape
impl Clone for BatchWorkShape
Source§fn clone(&self) -> BatchWorkShape
fn clone(&self) -> BatchWorkShape
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 BatchWorkShape
impl Debug for BatchWorkShape
impl Eq for BatchWorkShape
Source§impl PartialEq for BatchWorkShape
impl PartialEq for BatchWorkShape
Source§impl Serialize for BatchWorkShape
impl Serialize for BatchWorkShape
impl StructuralPartialEq for BatchWorkShape
Auto Trait Implementations§
impl Freeze for BatchWorkShape
impl RefUnwindSafe for BatchWorkShape
impl Send for BatchWorkShape
impl Sync for BatchWorkShape
impl Unpin for BatchWorkShape
impl UnsafeUnpin for BatchWorkShape
impl UnwindSafe for BatchWorkShape
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