pub struct RuntimeAccess<'borrow, 'parents> { /* private fields */ }Implementations§
Source§impl<'b, 'p> RuntimeAccess<'b, 'p>
impl<'b, 'p> RuntimeAccess<'b, 'p>
Sourcepub fn verify_external_reservation(
&self,
owner: &Mutex<ReservationLedger>,
incarnation: CanonicalIncarnation,
handle: &ReservationHandle,
expected: ResourceBudget,
) -> Result<(), E>
pub fn verify_external_reservation( &self, owner: &Mutex<ReservationLedger>, incarnation: CanonicalIncarnation, handle: &ReservationHandle, expected: ResourceBudget, ) -> Result<(), E>
Same actual held ledger: validation only, never permission/new charge.
pub fn admit( &mut self, plan: &ColdPlan<'_>, index: usize, now: u64, policy: Generation, ) -> Result<TransferTicket, E>
pub fn poll(&mut self, now: u64) -> Result<RuntimePoll, E>
pub fn issue_credit( &mut self, ticket: &TransferTicket, now: u64, policy: Generation, ) -> Result<RequestCredit, E>
pub fn state(&self, ticket: &TransferTicket) -> Result<TransferState, E>
pub fn cancel_epoch(&self, ticket: &TransferTicket) -> Result<CancelEpoch, E>
pub fn cancel(&mut self, ticket: &TransferTicket) -> Result<(), E>
pub fn expire(&mut self, now: u64) -> Result<usize, E>
pub fn complete_io( &mut self, ticket: &mut TransferTicket, key: CompletionKey, now: u64, ) -> Result<FinishOutcome, E>
pub fn live_transfers(&self) -> usize
pub fn pending_schedule_records(&self) -> usize
pub fn charged_window_bytes(&self) -> u64
pub fn supported_inflight(&self) -> usize
pub fn parent_used(&self) -> AdmissionScopes
pub fn acquire_sparse_page( &mut self, identity: StorageIdentity, page: u64, ) -> Result<SparsePageWorkspace, E>
pub fn release_sparse_page( &mut self, page: SparsePageWorkspace, ) -> Result<(), WorkspaceReleaseError>
Sourcepub fn storage_stage<'s>(
&'s mut self,
ticket: &'s TransferTicket,
payload: &'s [u8],
proof: &'s [u8],
scratch: &'s mut [u8],
now: u64,
policy: Generation,
) -> Result<StorageStage<'s, 'p>, E>
pub fn storage_stage<'s>( &'s mut self, ticket: &'s TransferTicket, payload: &'s [u8], proof: &'s [u8], scratch: &'s mut [u8], now: u64, policy: Generation, ) -> Result<StorageStage<'s, 'p>, E>
Bounded memory/proof checks ONLY in this short scope. Do not call actual synchronous native read/write/flush here. Storage job handoff is separate.
pub fn release_recovery_source<'root>( &mut self, source: RetainedRecoverySource<'root>, ) -> Result<(), SourceReleaseError<'root>>
Auto Trait Implementations§
impl<'borrow, 'parents> !UnwindSafe for RuntimeAccess<'borrow, 'parents>
impl<'borrow, 'parents> Freeze for RuntimeAccess<'borrow, 'parents>
impl<'borrow, 'parents> RefUnwindSafe for RuntimeAccess<'borrow, 'parents>
impl<'borrow, 'parents> Send for RuntimeAccess<'borrow, 'parents>
impl<'borrow, 'parents> Sync for RuntimeAccess<'borrow, 'parents>
impl<'borrow, 'parents> Unpin for RuntimeAccess<'borrow, 'parents>
impl<'borrow, 'parents> UnsafeUnpin for RuntimeAccess<'borrow, 'parents>
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