pub enum Sharing<I>where
I: IntoIterator<Item = u32>,{
Exclusive,
Concurrent(I),
}Expand description
Declares in which queue(s) a resource can be used.
Variants§
Exclusive
The resource is used is only one queue family.
Concurrent(I)
The resource is used in multiple queue families. Can be slower than Exclusive.
Implementations§
Trait Implementations§
impl<I> Eq for Sharing<I>
impl<I> StructuralPartialEq for Sharing<I>where
I: IntoIterator<Item = u32>,
Auto Trait Implementations§
impl<I> Freeze for Sharing<I>where
I: Freeze,
impl<I> RefUnwindSafe for Sharing<I>where
I: RefUnwindSafe,
impl<I> Send for Sharing<I>where
I: Send,
impl<I> Sync for Sharing<I>where
I: Sync,
impl<I> Unpin for Sharing<I>where
I: Unpin,
impl<I> UnwindSafe for Sharing<I>where
I: 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