Struct EtalonSubmissionLease
pub struct EtalonSubmissionLease<T> { /* private fields */ }Expand description
Queue-retained resource ownership until hardware completion.
Construct through HalComputeLane::lease_submission. The former unrestricted new
constructor and public resource fields are removed: only the issuing queue can prove completion.
Dropping a lease releases its resource only after the queue’s retained reference is released.
Implementations§
§impl<T> SubmissionLease<T>
impl<T> SubmissionLease<T>
pub fn region(&self) -> BufferRegion
pub fn token(&self) -> PerQueueCompletionToken
pub fn try_reclaim(self, lane: &HalComputeLane) -> Result<T, SubmissionLease<T>>
pub fn try_reclaim(self, lane: &HalComputeLane) -> Result<T, SubmissionLease<T>>
Return ownership only after the issuing lane’s queue callback released its retention. Another lane with the same public queue ID cannot reclaim this lease.
Auto Trait Implementations§
impl<T> Freeze for SubmissionLease<T>
impl<T> RefUnwindSafe for SubmissionLease<T>where
T: RefUnwindSafe,
impl<T> Send for SubmissionLease<T>
impl<T> Sync for SubmissionLease<T>
impl<T> Unpin for SubmissionLease<T>
impl<T> UnsafeUnpin for SubmissionLease<T>
impl<T> UnwindSafe for SubmissionLease<T>where
T: RefUnwindSafe,
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