pub struct ProduceWork {
pub workers: Vec<Option<usize>>,
pub points: Vec<u8>,
pub full: bool,
pub cycles: i32,
}Expand description
ConsumeProduce work state: the worker at each use point, each output point’s state (0 free, 1
a production is under way, 2 holds output), every output point was taken, work cycles towards
the next production.
Fields§
§workers: Vec<Option<usize>>The worker at each use point.
points: Vec<u8>The state of each output point: 0 free, 1 a production is under way, 2 holds output.
full: boolWhether every output point was taken.
cycles: i32The work cycles towards the next production.
Trait Implementations§
Source§impl Clone for ProduceWork
impl Clone for ProduceWork
Source§fn clone(&self) -> ProduceWork
fn clone(&self) -> ProduceWork
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProduceWork
impl Debug for ProduceWork
Source§impl Default for ProduceWork
impl Default for ProduceWork
Source§fn default() -> ProduceWork
fn default() -> ProduceWork
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProduceWork
impl RefUnwindSafe for ProduceWork
impl Send for ProduceWork
impl Sync for ProduceWork
impl Unpin for ProduceWork
impl UnsafeUnpin for ProduceWork
impl UnwindSafe for ProduceWork
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more