Skip to main content

Module runtime

Module runtime 

Source
Expand description

Peer runtime: leases, admission ledger, events/effects, scheduler, cancel.

Re-exports§

pub use cancel::CancelEpoch;
pub use cancel::OperationHandle;
pub use cancel::OperationTable;
pub use events::EffectKind;
pub use events::EffectQueue;
pub use events::EventKind;
pub use events::KernelEffect;
pub use events::KernelEvent;
pub use generations::bump_generation;
pub use handles::BufferLease;
pub use handles::LeaseHandle;
pub use incarnation::CanonicalIncarnation;
pub use leases::LeaseTable;
pub use leases::LEASE_SLOTS;
pub use ledger::AdmissionScopes;
pub use ledger::ReservationHandle;
pub use ledger::ReservationLedger;
pub use ledger::ResourceBudget;
pub use resources::ResourceGovernor;
pub use scheduler::FairScheduler;
pub use scheduler::PollOutcome;
pub use scheduler::ScheduledWork;
pub use scheduler::WorkClass;
pub use scheduler::BACKGROUND_CAP;
pub use scheduler::CONTROL_CAP;
pub use scheduler::INTERACTIVE_CAP;
pub use scheduler::MAX_SCOPES;

Modules§

cancel
Operation identity, cancel epoch, and late-completion rules.
events
Bounded kernel events and effects. Completion consumes the slot.
generations
Non-wrapping slot generations. Exhaustion retires the slot; it never wraps into a previously valid handle.
handles
Non-wrapping generation handles.
incarnation
Local actual-value identity only; never a budget token or wire authority.
leases
Exclusive buffer leases with double-release and stale-generation rejection.
ledger
Atomic host/cell/role reservation ledger. All-or-nothing admission.
resources
Admission helpers: essential reclaim floor and transient unknown-sender charge.
scheduler
Bounded deficit round-robin across admitted scopes and work classes.