[−][src]Struct rendy_chain::Queue
Instances of this type contains array of Submission
s.
Those submissions are expected to be submitted in order.
Methods
impl<S> Queue<S>
[src]
pub fn new(id: QueueId) -> Self
[src]
Create new queue with specified id.
pub fn id(&self) -> QueueId
[src]
Get id of the queue.
pub fn iter(&self) -> impl Iterator<Item = &Submission<S>>
[src]
Iterate over immutable references to each submission in this queue
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut Submission<S>>
[src]
Iterate over mutable references to each submission in this queue
pub fn len(&self) -> usize
[src]
Get the number of submissions in queue.
pub fn submission(&self, sid: SubmissionId) -> Option<&Submission<S>>
[src]
Get reference to Submission
instance by id.
Panic
This function will panic if requested submission isn't part of this queue.
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
instance by id.
Panic
This function will panic if requested submission isn't part of this queue.
pub fn add_submission(
&mut self,
node: usize,
wait_factor: usize,
submit_order: usize,
sync: S
) -> SubmissionId
[src]
&mut self,
node: usize,
wait_factor: usize,
submit_order: usize,
sync: S
) -> SubmissionId
Add Submission
instance to the end of queue.
Returns id of the added submission.
pub fn add_submission_checked(&mut self, submission: Submission<S>)
[src]
Add Submission
instance to the end of queue.
Check that submission has correct id.
Trait Implementations
Auto Trait Implementations
impl<S> Send for Queue<S> where
S: Send,
S: Send,
impl<S> Sync for Queue<S> where
S: Sync,
S: Sync,
impl<S> Unpin for Queue<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for Queue<S> where
S: UnwindSafe,
S: UnwindSafe,
impl<S> RefUnwindSafe for Queue<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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, 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,