pub struct TokenInfo {
pub flow: String,
pub hash: String,
pub node: String,
pub sequence: u64,
pub asks: u64,
pub ask: Option<String>,
pub wake_at: Option<i64>,
}Expand description
What a Token says.
Fields§
§flow: StringThe flow’s name.
hash: StringThe version of the flow that made it, as Flow::hash shows it.
node: StringThe node the instance is at.
sequence: u64Goes up by one each time a run moves the instance: to another node or other arguments, to another wake time, or into an ask. A run that leaves the instance where it was hands back the same token, so use this as a compare-and-swap version when saving.
asks: u64Asks the instance has made so far.
ask: Option<String>The ask the instance waits on an answer to.
wake_at: Option<i64>When the instance wants a tick, in epoch seconds.
Trait Implementations§
impl Eq for TokenInfo
impl StructuralPartialEq for TokenInfo
Auto Trait Implementations§
impl Freeze for TokenInfo
impl RefUnwindSafe for TokenInfo
impl Send for TokenInfo
impl Sync for TokenInfo
impl Unpin for TokenInfo
impl UnsafeUnpin for TokenInfo
impl UnwindSafe for TokenInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.