pub struct TransferRuntime<'a> { /* private fields */ }Implementations§
Source§impl TransferRuntime<'_>
impl TransferRuntime<'_>
Sourcepub fn acquire_sparse_page(
&mut self,
identity: StorageIdentity,
page: u64,
) -> Result<SparsePageWorkspace, QdnfError>
pub fn acquire_sparse_page( &mut self, identity: StorageIdentity, page: u64, ) -> Result<SparsePageWorkspace, QdnfError>
Reserve the actual whole fixed owner before constructing page memory. Pages start zero; untrusted checkpoint bytes cannot initialize marks.
pub const fn retained_sparse_pages(&self) -> usize
Sourcepub fn sparse_inflight_ceiling(&self) -> usize
pub fn sparse_inflight_ceiling(&self) -> usize
Handle-limited ceiling; other existing host use and byte caps may narrow it.
Sourcepub fn release_sparse_page(
&mut self,
workspace: SparsePageWorkspace,
) -> Result<(), WorkspaceReleaseError>
pub fn release_sparse_page( &mut self, workspace: SparsePageWorkspace, ) -> Result<(), WorkspaceReleaseError>
Actual page borrow cannot coexist with this consuming release. On every refusal the original owner is returned intact, including wrong-runtime use.
Source§impl TransferRuntime<'_>
impl TransferRuntime<'_>
pub fn poll(&mut self, now: u64) -> Result<RuntimePoll, QdnfError>
pub fn issue_credit( &mut self, ticket: &TransferTicket, now: u64, current_policy: Generation, ) -> Result<RequestCredit, QdnfError>
pub fn state(&self, ticket: &TransferTicket) -> Result<TransferState, QdnfError>
pub fn cancel_epoch( &self, ticket: &TransferTicket, ) -> Result<CancelEpoch, QdnfError>
pub fn cancel(&mut self, ticket: &TransferTicket) -> Result<(), QdnfError>
pub fn expire(&mut self, now: u64) -> Result<usize, QdnfError>
Source§impl<'a> TransferRuntime<'a>
impl<'a> TransferRuntime<'a>
pub fn new( ledger: &'a mut ReservationLedger, leases: &'a mut LeaseTable, operations: &'a mut OperationTable, scheduler: &'a mut FairScheduler, governor: &'a ResourceGovernor, profile: RuntimeProfile, control: ResourceBudget, ) -> Result<Self, QdnfError>
pub const fn live_transfers(&self) -> usize
pub const fn pending_schedule_records(&self) -> usize
pub const fn charged_window_bytes(&self) -> u64
pub fn leased_slots(&self) -> usize
pub fn parent_used(&self) -> AdmissionScopes
pub fn supported_inflight(&self) -> usize
Source§impl TransferRuntime<'_>
impl TransferRuntime<'_>
Sourcepub fn acquire_recovery_source<'root>(
&mut self,
driver: &MmapDriver,
scope: &RecoveryRootScope<'root>,
locator: StagingLocator,
limits: RangeLimits,
) -> Result<RetainedRecoverySource<'root>, SourceError>
pub fn acquire_recovery_source<'root>( &mut self, driver: &MmapDriver, scope: &RecoveryRootScope<'root>, locator: StagingLocator, limits: RangeLimits, ) -> Result<RetainedRecoverySource<'root>, SourceError>
Reserve actual retained source/metadata and conservative4-handle IO profile BEFORE cold opening. No persistent quota is reconstructed.
pub const fn retained_recovery_sources(&self) -> usize
pub fn recovery_inflight_ceiling(&self) -> usize
pub fn release_recovery_source<'root>( &mut self, source: RetainedRecoverySource<'root>, ) -> Result<(), SourceReleaseError<'root>>
Source§impl<'owners> TransferRuntime<'owners>
impl<'owners> TransferRuntime<'owners>
Sourcepub fn storage_stage<'s>(
&'s mut self,
ticket: &'s TransferTicket,
payload: &'s [u8],
proof: &'s [u8],
scratch: &'s mut [u8],
now: u64,
current_policy: Generation,
) -> Result<StorageStage<'s, 'owners>, QdnfError>
pub fn storage_stage<'s>( &'s mut self, ticket: &'s TransferTicket, payload: &'s [u8], proof: &'s [u8], scratch: &'s mut [u8], now: u64, current_policy: Generation, ) -> Result<StorageStage<'s, 'owners>, QdnfError>
Reuses the received payload’s network charge. Proof and storage scratch must fit their separately admitted components. No hidden copy is made. Intended for bounded synchronous operations, not an async owner handoff.
Source§impl TransferRuntime<'_>
impl TransferRuntime<'_>
pub fn admit( &mut self, plan: &ColdPlan<'_>, index: usize, now: u64, current_policy: Generation, ) -> Result<TransferTicket, QdnfError>
Sourcepub fn complete_io(
&mut self,
ticket: &mut TransferTicket,
key: CompletionKey,
now: u64,
) -> Result<FinishOutcome, QdnfError>
pub fn complete_io( &mut self, ticket: &mut TransferTicket, key: CompletionKey, now: u64, ) -> Result<FinishOutcome, QdnfError>
Caller asserts all actual I/O/borrowers have ended. Does not certify bytes or consumption.
Auto Trait Implementations§
impl<'a> !UnwindSafe for TransferRuntime<'a>
impl<'a> Freeze for TransferRuntime<'a>
impl<'a> RefUnwindSafe for TransferRuntime<'a>
impl<'a> Send for TransferRuntime<'a>
impl<'a> Sync for TransferRuntime<'a>
impl<'a> Unpin for TransferRuntime<'a>
impl<'a> UnsafeUnpin for TransferRuntime<'a>
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>,
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
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> ⓘ
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> ⓘ
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