pub struct LocalWholeSourceGrant<'a, 'data> { /* private fields */ }Expand description
Concrete owner borrow is retained from installation through final use. The private handle cannot be rebound to an unrelated similarly populated owner. Holding this guard excludes other grant mutations; hosts must keep it short.
Implementations§
Source§impl<'data> LocalWholeSourceGrant<'_, 'data>
impl<'data> LocalWholeSourceGrant<'_, 'data>
Sourcepub fn accept_local_scoped<T>(
&mut self,
pins: &PinAuthority,
clock: impl Fn() -> u64,
effect: impl for<'g> FnOnce(&mut LocalEffectControl<'g, 'data>) -> Result<T, E>,
) -> Result<T, E>
pub fn accept_local_scoped<T>( &mut self, pins: &PinAuthority, clock: impl Fn() -> u64, effect: impl for<'g> FnOnce(&mut LocalEffectControl<'g, 'data>) -> Result<T, E>, ) -> Result<T, E>
One synchronous effect with repeated current-authority checks. The callback must recheck before each externally meaningful operation; entry/exit checks additionally prevent publishing a successful result after expiry. Failure does not roll back staging I/O; callers retain uncertain bytes as unaccepted candidates and drain through their owner. Exact owner/pin borrows remain held only for this bounded call. Do not await, reenter these owners, or retain plaintext without its own lease.
Source§impl LocalWholeSourceGrant<'_, '_>
impl LocalWholeSourceGrant<'_, '_>
Sourcepub fn cancel(&mut self) -> Result<(), E>
pub fn cancel(&mut self) -> Result<(), E>
Host cancellation/revocation is terminal and goes through the SAME owner.
pub fn binding(&self) -> AuthorityBinding
Sourcepub fn close(self) -> Result<(), E>
pub fn close(self) -> Result<(), E>
Drain this synchronous guard, revoke and explicitly reclaim its record.
Sourcepub fn accept_local<T>(
&mut self,
pins: &PinAuthority,
clock: impl Fn() -> u64,
accept: impl FnOnce(&BoundClosure<'_>) -> Result<T, E>,
) -> Result<T, E>
pub fn accept_local<T>( &mut self, pins: &PinAuthority, clock: impl Fn() -> u64, accept: impl FnOnce(&BoundClosure<'_>) -> Result<T, E>, ) -> Result<T, E>
One bounded synchronous host effect. The host clock is trusted and must be freshly sampled; this is not a wire timestamp. Callback must not await or retain authority. Failure/unwind is terminal. No ExecutionPermit escapes. This does not certify payload proofs, resource reservations or durable IO.
Trait Implementations§
Source§impl Drop for LocalWholeSourceGrant<'_, '_>
impl Drop for LocalWholeSourceGrant<'_, '_>
Auto Trait Implementations§
impl<'a, 'data> !UnwindSafe for LocalWholeSourceGrant<'a, 'data>
impl<'a, 'data> Freeze for LocalWholeSourceGrant<'a, 'data>
impl<'a, 'data> RefUnwindSafe for LocalWholeSourceGrant<'a, 'data>
impl<'a, 'data> Send for LocalWholeSourceGrant<'a, 'data>
impl<'a, 'data> Sync for LocalWholeSourceGrant<'a, 'data>
impl<'a, 'data> Unpin for LocalWholeSourceGrant<'a, 'data>
impl<'a, 'data> UnsafeUnpin for LocalWholeSourceGrant<'a, 'data>
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