Struct Turns
pub struct Turns {
pub limit: u32,
pub queue: VecDeque<String>,
pub running: Vec<String>,
/* private fields */
}Expand description
The coordinator’s state, carried across continue-as-new.
Fields§
§limit: u32§queue: VecDeque<String>Waiting, in the order they asked.
running: Vec<String>Holding a turn, in the order they were admitted.
Trait Implementations§
§impl<'de> Deserialize<'de> for Turns
impl<'de> Deserialize<'de> for Turns
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Turns
impl RefUnwindSafe for Turns
impl Send for Turns
impl Sync for Turns
impl Unpin for Turns
impl UnsafeUnpin for Turns
impl UnwindSafe for Turns
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