pub struct FenceToken { /* private fields */ }Expand description
The one-shot signal a slot in flight is waiting for.
Self::signal is called by the re-map’s completion callback. A token
dropped without being signalled — the encoder carrying it was dropped
unsubmitted, so its callback was dropped too — marks the slot
SlotState::Abandoned instead of leaving it in flight forever.
Implementations§
Source§impl FenceToken
impl FenceToken
Sourcepub fn signal(self, mapped: bool)
pub fn signal(self, mapped: bool)
The re-map completed (mapped) or failed: the slot is
SlotState::Ready or SlotState::Failed.
Trait Implementations§
Source§impl Debug for FenceToken
impl Debug for FenceToken
Source§impl Drop for FenceToken
impl Drop for FenceToken
Auto Trait Implementations§
impl Freeze for FenceToken
impl RefUnwindSafe for FenceToken
impl Send for FenceToken
impl Sync for FenceToken
impl Unpin for FenceToken
impl UnsafeUnpin for FenceToken
impl UnwindSafe for FenceToken
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