pub struct DriverFenceAllocation<'a, T: Send + Sync + FenceContextOps> { /* private fields */ }Expand description
A pre-prepared DMA fence, carrying the user’s data and the memory it and the
fence reside in. Only useful for creating a DriverFence. Splitting
allocation and full initialization is necessary because fences cannot be
allocated dynamically in some circumstances (deadlock).
Implementations§
Source§impl<'a, T: Send + Sync + FenceContextOps> DriverFenceAllocation<'a, T>
impl<'a, T: Send + Sync + FenceContextOps> DriverFenceAllocation<'a, T>
Sourcepub fn new_fence(self) -> DriverFence<'a, T>
pub fn new_fence(self) -> DriverFence<'a, T>
Create a new DriverFence, the signalable counterpart of a Fence.
This increments the sequence number in the associated FenceContext.
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for DriverFenceAllocation<'a, T>
impl<'a, T> !Send for DriverFenceAllocation<'a, T>
impl<'a, T> !Sync for DriverFenceAllocation<'a, T>
impl<'a, T> !UnwindSafe for DriverFenceAllocation<'a, T>
impl<'a, T> Freeze for DriverFenceAllocation<'a, T>
impl<'a, T> Unpin for DriverFenceAllocation<'a, T>
impl<'a, T> UnsafeUnpin for DriverFenceAllocation<'a, T>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
impl<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
Source§fn into_safe_cast(self) -> T
fn into_safe_cast(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.Source§impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
Source§fn into_safe_cast_arch(self) -> T
fn into_safe_cast_arch(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.