pub struct DropPayloadLockBound<JobError> { /* private fields */ }
Expand description
Result of calling a job
within PayloadSliceLock::drop_with
.
This is a “bound” type which means it’s main purpose is to give
some type-level guarantees. More precisely, it gives guarantee
that payload value was reclaimed/unlocked by the owner. Also it stores the error
of the job
, which gives opportunity to handle the actual job’s runtime
error, but not bound wrappers.
Implementations§
Source§impl<JobErr> DropPayloadLockBound<JobErr>
impl<JobErr> DropPayloadLockBound<JobErr>
Sourcepub fn into_inner(self) -> Result<(), JobErr>
pub fn into_inner(self) -> Result<(), JobErr>
Convert into inner job of the PayloadSliceLock::drop_with
result.
Trait Implementations§
Source§impl<JobErr> From<(UnlockPayloadBound, Result<(), JobErr>)> for DropPayloadLockBound<JobErr>
impl<JobErr> From<(UnlockPayloadBound, Result<(), JobErr>)> for DropPayloadLockBound<JobErr>
Auto Trait Implementations§
impl<JobError> Freeze for DropPayloadLockBound<JobError>where
JobError: Freeze,
impl<JobError> RefUnwindSafe for DropPayloadLockBound<JobError>where
JobError: RefUnwindSafe,
impl<JobError> Send for DropPayloadLockBound<JobError>where
JobError: Send,
impl<JobError> Sync for DropPayloadLockBound<JobError>where
JobError: Sync,
impl<JobError> Unpin for DropPayloadLockBound<JobError>where
JobError: Unpin,
impl<JobError> UnwindSafe for DropPayloadLockBound<JobError>where
JobError: UnwindSafe,
Blanket Implementations§
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