pub struct FlowId(/* private fields */);Expand description
Identifier of a flow — Byteflow’s unit of concurrent work.
Host APIs and the directory key on this type. Inside messages it appears
as crate::Value::Pid (Message.sender / msg_sender) for identity.
Bytecode addressing uses crate::Value::Cap (FlowCap) — a Pid is not a
Send/Ask authority token.
Backed by a single global, wait-free AtomicU64 counter rather than
anything derived from memory addresses: ids must stay unique for the
lifetime of the runtime and must never be reused, or a stale id in
someone’s registers could address a different later flow (ABA) via the
host/Directory path.
Implementations§
Trait Implementations§
impl Copy for FlowId
impl Eq for FlowId
Source§impl Ord for FlowId
impl Ord for FlowId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for FlowId
impl PartialOrd for FlowId
impl StructuralPartialEq for FlowId
Auto Trait Implementations§
impl Freeze for FlowId
impl RefUnwindSafe for FlowId
impl Send for FlowId
impl Sync for FlowId
impl Unpin for FlowId
impl UnsafeUnpin for FlowId
impl UnwindSafe for FlowId
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