[−][src]Struct rendy_chain::Family
Instances of this type contains array of Queue
s.
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]
&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
impl<S: Clone> Clone for Family<S>
[src]
fn clone(&self) -> Family<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 Family<S>
[src]
Auto Trait Implementations
impl<S> Unpin for Family<S> where
S: Unpin,
S: Unpin,
impl<S> Sync for Family<S> where
S: Sync,
S: Sync,
impl<S> Send for Family<S> where
S: Send,
S: Send,
impl<S> UnwindSafe for Family<S> where
S: UnwindSafe,
S: UnwindSafe,
impl<S> RefUnwindSafe for Family<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,