pub struct QueueLock {
pub lock: Option<Arc<dyn Fn() + Send + Sync + 'static>>,
pub unlock: Option<Arc<dyn Fn() + Send + Sync + 'static>>,
}Expand description
Your lock on a Vulkan queue that you and a render session both submit to.
The session holds the lock only while it submits or presents to the queue.
Set both lock and unlock, or neither when you don’t submit to the queue
yourself.
It can run on a library thread, and it can’t call the library.
See mln_queue_lock in the
C API reference.
Fields§
§lock: Option<Arc<dyn Fn() + Send + Sync + 'static>>§unlock: Option<Arc<dyn Fn() + Send + Sync + 'static>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for QueueLock
impl !UnwindSafe for QueueLock
impl Freeze for QueueLock
impl Send for QueueLock
impl Sync for QueueLock
impl Unpin for QueueLock
impl UnsafeUnpin for QueueLock
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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