[−][src]Struct rendy_chain::Family
Instances of this type contains array of Queue
s.
All contained queues has identical capabilities.
Implementations
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][−]
&mut self,
sid: SubmissionId
) -> Option<&mut Submission<S>>
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
Auto Trait Implementations
impl<S> RefUnwindSafe for Family<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for Family<S> where
S: Send,
S: Send,
impl<S> Sync for Family<S> where
S: Sync,
S: Sync,
impl<S> Unpin for Family<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for Family<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,