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
.
Trait Implementations
impl<I: Eq> Eq for Sharing<I> where
I: IntoIterator<Item = u32>,
impl<I> StructuralEq for Sharing<I> where
I: IntoIterator<Item = u32>,
impl<I> StructuralPartialEq for Sharing<I> where
I: IntoIterator<Item = u32>,
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more