[][src]Struct rendy_chain::Family

pub struct Family<S> { /* fields omitted */ }

Instances of this type contains array of Queues. All contained queues has identical capabilities.

Methods

impl<S> Family<S>[src]

pub fn new(id: QueueFamilyId) -> Self[src]

Create new empty Family

pub fn id(&self) -> QueueFamilyId[src]

Get id of the family.

pub fn queue(&self, qid: QueueId) -> Option<&Queue<S>>[src]

Get reference to Queue instance by the id.

Panic

This function will panic if requested queue isn't part of this family.

pub fn queue_mut(&mut self, qid: QueueId) -> Option<&mut Queue<S>>[src]

Get mutable reference to Queue instance by the id.

Panic

This function will panic if requested queue isn't part of this family.

pub fn ensure_queue(&mut self, qid: QueueId) -> &mut Queue<S>[src]

Get mutable reference to Queue instance by the id. This function will grow queues array if index is out of bounds.

Panic

This function will panic if requested queue isn't part of this family.

pub fn submission(&self, sid: SubmissionId) -> Option<&Submission<S>>[src]

Get reference to Submission<S> instance by id.

Panic

This function will panic if requested submission isn't part of this family.

pub fn submission_mut(
    &mut self,
    sid: SubmissionId
) -> Option<&mut Submission<S>>
[src]

Get mutable reference to Submission<S> instance by id.

Panic

This function will panic if requested submission isn't part of this family.

pub fn iter(&self) -> impl Iterator<Item = &Queue<S>>[src]

Iterate over queues.

pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut Queue<S>>[src]

Iterate over queues.

pub fn queue_count(&self) -> usize[src]

The number of queues in this schedule.

Trait Implementations

impl<S: Clone> Clone for Family<S>[src]

impl<S: Debug> Debug for Family<S>[src]

Auto Trait Implementations

impl<S> Send for Family<S> where
    S: Send

impl<S> Sync for Family<S> where
    S: Sync

impl<S> Unpin for Family<S> where
    S: Unpin

impl<S> UnwindSafe for Family<S> where
    S: UnwindSafe

impl<S> RefUnwindSafe for Family<S> where
    S: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Supports<T> for T[src]