pub struct ProducerId(/* private fields */);Expand description
One producing process.
Every publisher carries one: a spawned participant receives a supervisor-pre-minted id through the launch contract, and an ad hoc publisher mints its own. Because it is fresh per process, repeated ad hoc invocations never collide under strict per-producer sequence rejection, and a restarted participant is structurally a different producer.
Implementations§
Source§impl ProducerId
impl ProducerId
Trait Implementations§
Source§impl Clone for ProducerId
impl Clone for ProducerId
Source§fn clone(&self) -> ProducerId
fn clone(&self) -> ProducerId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProducerId
Source§impl Debug for ProducerId
impl Debug for ProducerId
Source§impl<'de> Deserialize<'de> for ProducerId
impl<'de> Deserialize<'de> for ProducerId
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ProducerId
impl Display for ProducerId
impl Eq for ProducerId
Source§impl Hash for ProducerId
impl Hash for ProducerId
Source§impl PartialEq for ProducerId
impl PartialEq for ProducerId
Source§impl Serialize for ProducerId
impl Serialize for ProducerId
impl StructuralPartialEq for ProducerId
Auto Trait Implementations§
impl Freeze for ProducerId
impl RefUnwindSafe for ProducerId
impl Send for ProducerId
impl Sync for ProducerId
impl Unpin for ProducerId
impl UnsafeUnpin for ProducerId
impl UnwindSafe for ProducerId
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