pub struct Schedule { /* private fields */ }Implementations§
Source§impl Schedule
impl Schedule
pub fn compile( inventory: &Inventory<'_>, selections: &[PrincipalSelection<'_>], present: &[u32], ) -> Result<Self, PlanError>
pub fn enqueue_unit( &mut self, principal: u64, entry: &PlanEntry, unit: RecordUnit, ready: bool, ) -> Result<(), PlanError>
pub fn push_control( &mut self, principal: u64, unit: RecordUnit, ) -> Result<(), PlanError>
Sourcepub fn cancel(&mut self, entry_id: u32, region: Option<Region>) -> usize
pub fn cancel(&mut self, entry_id: u32, region: Option<Region>) -> usize
Mark overlapping units cancelled. Occupancy stays until acknowledge_complete.
Sourcepub fn next(&mut self) -> Option<ScheduledUnit>
pub fn next(&mut self) -> Option<ScheduledUnit>
At most one admitted record-boundary unit. Control is never starved. M64/P64 wait while Ready EMF/QAC/10D (and other live families) remain.
pub fn occupancy_retained( &self, principal: u64, entry_id: Option<u32>, leaf: u64, ) -> bool
pub fn acknowledge_complete( &mut self, principal: u64, entry_id: Option<u32>, leaf: u64, ) -> Result<(), PlanError>
pub fn is_charged(&self, candidate: CandidateIdentity, entry_id: u32) -> bool
pub const fn charged_bytes(&self) -> u64
pub const fn candidate(&self) -> CandidateIdentity
pub const fn len(&self) -> usize
Auto Trait Implementations§
impl Freeze for Schedule
impl RefUnwindSafe for Schedule
impl Send for Schedule
impl Sync for Schedule
impl Unpin for Schedule
impl UnsafeUnpin for Schedule
impl UnwindSafe for Schedule
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more