pub struct FlowId(/* private fields */);Expand description
Unique identifier for a flow (pipeline execution instance).
Assigned by the reactor when a flow is created. Monotonically increasing. Not reused within a single host process lifetime.
§Invariants
- Unique within a single host process.
- Never reused.
§Examples
use torvyn_types::FlowId;
let id = FlowId::new(7);
assert_eq!(id.as_u64(), 7);
assert_eq!(format!("{}", id), "flow-7");Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlowId
impl<'de> Deserialize<'de> for FlowId
Source§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
Source§impl Ord for FlowId
impl Ord for FlowId
Source§impl PartialOrd for FlowId
impl PartialOrd for FlowId
impl Copy for FlowId
impl Eq 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 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