pub unsafe trait QueuesConfigure {
type Priorities: AsRef<[f32]>;
type Families: IntoIterator<Item = (FamilyId, Self::Priorities)>;
// Required method
fn configure(
&self,
device: DeviceId,
families: &[impl QueueFamily],
) -> Self::Families;
}
Expand description
Queues configuration.
Method configure
receives collection of queue families and
returns an iterator over family ids and number of queues.
Required Associated Types§
Sourcetype Priorities: AsRef<[f32]>
type Priorities: AsRef<[f32]>
Slice of priorities.
Sourcetype Families: IntoIterator<Item = (FamilyId, Self::Priorities)>
type Families: IntoIterator<Item = (FamilyId, Self::Priorities)>
Iterator over families to create.
Required Methods§
Sourcefn configure(
&self,
device: DeviceId,
families: &[impl QueueFamily],
) -> Self::Families
fn configure( &self, device: DeviceId, families: &[impl QueueFamily], ) -> Self::Families
Configure.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.