[][src]Struct rendy_chain::Schedule

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

Whole passes schedule.

Methods

impl<S> Schedule<S>[src]

pub fn new() -> Self[src]

Create new empty Schedule

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

Get total number of submissions.

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

Iterate over submissions in ordered they must be submitted.

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

The number of families in this schedule.

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

The number of queues in this schedule.

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

Iterate over immutable references to families in this schedule.

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

Iterate over mutable references to families in this schedule

pub fn family(&self, fid: QueueFamilyId) -> Option<&Family<S>>[src]

Get reference to Family instance by the id.

pub fn family_mut(&mut self, fid: QueueFamilyId) -> Option<&mut Family<S>>[src]

Get mutable reference to Family instance by the id.

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

Get reference to Queue instance by the id.

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

Get mutable reference to Queue instance by the id.

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

Get reference to Submission instance by id.

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

Get reference to Submission instance by id.

pub fn ensure_family(&mut self, fid: QueueFamilyId) -> &mut Family<S>[src]

Get mutable reference to Family instance by the id. This function will add empty Family if id is not present.

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.

pub fn build_order(&mut self)[src]

Make ordered.

Trait Implementations

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

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

impl<S> Index<QueueId> for Schedule<S>[src]

type Output = Queue<S>

The returned type after indexing.

impl<S> Index<SubmissionId> for Schedule<S>[src]

type Output = Submission<S>

The returned type after indexing.

impl<S> IndexMut<QueueId> for Schedule<S>[src]

impl<S> IndexMut<SubmissionId> for Schedule<S>[src]

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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]