pub struct Flow {
pub id: FlowId,
pub vm: Vm,
pub mailbox: Arc<Mailbox>,
pub metrics: Arc<FlowMetrics>,
pub restart_policy: RestartPolicy,
pub pending_message: Option<Value>,
pub last_receive_dest: Option<u8>,
/* private fields */
}Expand description
A single flow: VM state, mailbox, and bookkeeping.
This is the unit of work moved by the scheduler — pushed onto worker
deques, stolen, parked inside a Mailbox on Receive, or held by
the timer wheel while sleeping. Flows talk only via Atomic Hops
(crate::Value::Message on Send).
Fields§
§id: FlowId§vm: Vm§mailbox: Arc<Mailbox>§metrics: Arc<FlowMetrics>§restart_policy: RestartPolicy§pending_message: Option<Value>Set by Mailbox::park when a hop wins the park race.
last_receive_dest: Option<u8>Destination register of the most recent Receive /
ReceiveTimeout / selective receive (ReceiveMatch*).
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Flow
impl !UnwindSafe for Flow
impl Forget for Flow
impl Freeze for Flowwhere
*const ArcInner<Chunk> is !null: Freeze,
PhantomData<ArcInner<Chunk>>: Freeze,
*const ArcInner<NativeTable> is !null: Freeze,
PhantomData<ArcInner<NativeTable>>: Freeze,
*const ArcInner<[u64]> is !null: Freeze,
PhantomData<ArcInner<[u64]>>: Freeze,
*const ArcInner<RevocationCell> is !null: Freeze,
PhantomData<ArcInner<RevocationCell>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<Frame>: Freeze,
*const ArcInner<FlowQuota> is !null: Freeze,
PhantomData<ArcInner<FlowQuota>>: Freeze,
*const ArcInner<MemoryBudget> is !null: Freeze,
PhantomData<ArcInner<MemoryBudget>>: Freeze,
PhantomData<(i64, Value)>: Freeze,
*const ArcInner<Mailbox> is !null: Freeze,
PhantomData<ArcInner<Mailbox>>: Freeze,
*const ArcInner<FlowMetrics> is !null: Freeze,
PhantomData<ArcInner<FlowMetrics>>: Freeze,
*const ArcInner<Inner<FlowOutcome>> is !null: Freeze,
PhantomData<ArcInner<Inner<FlowOutcome>>>: Freeze,
*const ArcInner<Value> is !null: Freeze,
PhantomData<ArcInner<Value>>: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const ArcInner<[u8]> is !null: Freeze,
PhantomData<ArcInner<[u8]>>: Freeze,
*const ArcInner<[Value]> is !null: Freeze,
PhantomData<ArcInner<[Value]>>: Freeze,
*const ArcInner<[(MapKey, Value)]> is !null: Freeze,
PhantomData<ArcInner<[(MapKey, Value)]>>: Freeze,
*const ArcInner<Inner> is !null: Freeze,
PhantomData<ArcInner<Inner>>: Freeze,
impl Move for Flow
impl Send for Flowwhere
Arc<Chunk>: Send,
Arc<NativeTable>: Send,
Arc<[u64]>: Send,
Arc<RevocationCell>: Send,
RawVecInner: Send,
Arc<Value>: Send,
Arc<str>: Send,
Arc<[u8]>: Send,
Arc<[Value]>: Send,
Arc<[(MapKey, Value)]>: Send,
Arc<FlowQuota>: Send,
Arc<MemoryBudget>: Send,
RawTable<(i64, Value)>: Send,
Arc<Mailbox>: Send,
Arc<FlowMetrics>: Send,
Arc<Inner<FlowOutcome>>: Send,
Arc<Inner>: Send,
impl Sync for Flowwhere
Arc<Chunk>: Sync,
Arc<NativeTable>: Sync,
Arc<[u64]>: Sync,
Arc<RevocationCell>: Sync,
RawVecInner: Sync,
Arc<Value>: Sync,
Arc<str>: Sync,
Arc<[u8]>: Sync,
Arc<[Value]>: Sync,
Arc<[(MapKey, Value)]>: Sync,
Arc<FlowQuota>: Sync,
Arc<MemoryBudget>: Sync,
RawTable<(i64, Value)>: Sync,
Arc<Mailbox>: Sync,
Arc<FlowMetrics>: Sync,
Arc<Inner<FlowOutcome>>: Sync,
Arc<Inner>: Sync,
impl Unpin for Flowwhere
Arc<Chunk>: Unpin,
Arc<NativeTable>: Unpin,
Arc<[u64]>: Unpin,
Arc<RevocationCell>: Unpin,
*const u8 is !null: Unpin,
Arc<Value>: Unpin,
Arc<str>: Unpin,
Arc<[u8]>: Unpin,
Arc<[Value]>: Unpin,
Arc<[(MapKey, Value)]>: Unpin,
Arc<FlowQuota>: Unpin,
Arc<MemoryBudget>: Unpin,
Arc<Mailbox>: Unpin,
Arc<FlowMetrics>: Unpin,
Arc<Inner<FlowOutcome>>: Unpin,
Arc<Inner>: Unpin,
impl UnsafeUnpin for Flowwhere
*const ArcInner<Chunk> is !null: UnsafeUnpin,
PhantomData<ArcInner<Chunk>>: UnsafeUnpin,
*const ArcInner<NativeTable> is !null: UnsafeUnpin,
PhantomData<ArcInner<NativeTable>>: UnsafeUnpin,
*const ArcInner<[u64]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u64]>>: UnsafeUnpin,
*const ArcInner<RevocationCell> is !null: UnsafeUnpin,
PhantomData<ArcInner<RevocationCell>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Frame>: UnsafeUnpin,
*const ArcInner<FlowQuota> is !null: UnsafeUnpin,
PhantomData<ArcInner<FlowQuota>>: UnsafeUnpin,
*const ArcInner<MemoryBudget> is !null: UnsafeUnpin,
PhantomData<ArcInner<MemoryBudget>>: UnsafeUnpin,
PhantomData<(i64, Value)>: UnsafeUnpin,
*const ArcInner<Mailbox> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mailbox>>: UnsafeUnpin,
*const ArcInner<FlowMetrics> is !null: UnsafeUnpin,
PhantomData<ArcInner<FlowMetrics>>: UnsafeUnpin,
*const ArcInner<Inner<FlowOutcome>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner<FlowOutcome>>>: UnsafeUnpin,
*const ArcInner<Value> is !null: UnsafeUnpin,
PhantomData<ArcInner<Value>>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const ArcInner<[u8]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u8]>>: UnsafeUnpin,
*const ArcInner<[Value]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[Value]>>: UnsafeUnpin,
*const ArcInner<[(MapKey, Value)]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[(MapKey, Value)]>>: UnsafeUnpin,
*const ArcInner<Inner> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner>>: UnsafeUnpin,
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