Skip to main content

Module values

Module values 

Source
Expand description

Typed primitive carriers shipped by the framework.

Each typed carrier wraps one well-known framework primitive (PeerId, CommandId, etc.). Slot-table residency comes from the blanket impl on crate::slot_value::SlotValue - the carriers derive Serialize + Deserialize + Clone and that is the entire contract. Downstream consumers downcast to the concrete carrier the graph guarantees at each site.

Structs§

AddressValue
Typed carrier for a multiaddr Address.
AddressVecValue
Typed carrier for Vec<Address> — the ordered local-address bag installed via bb::install, the payload shape of the multi-address AddressBook syscalls, and the value flowing into wire.Send’s src_peer_addresses stamp. Ordering reflects caller preference; the receiver merges into the AddressBook with positional dedup.
BytesValue
Generic byte payload carrier.
CommandIdValue
Typed carrier for a CommandId.
CompositeValue
Envelope holding N typed child slot values bundled into one wire-eligible slot. Children are owned typed carriers; in-process Bundle/Unbundle round-trip preserves the concrete type without a bincode hop. The wire codec (Commit 2) serialises children as (type_hash, child.to_wire_bytes()) tuples and the receiver materialises typed children via the decoder registry.
CorrelationTokenValue
Typed carrier for a CorrelateTag correlation token.
PeerIdValue
Typed carrier for a PeerId.
PeerIdVecValue
Typed carrier for a Vec<PeerId> — the cardinal peer-list shape flowing into a wire.Send. Sampler / DHT / static-constant Components produce this; the Send fans out one envelope per peer. An empty vec is a valid no-op (zero envelopes shipped).
TimestampValue
Typed carrier for a wall-clock timestamp (nanoseconds since epoch).
TriggerValue
Zero-payload signal value. Used for Trigger outputs from syscall ops (Pulse, OnTrigger, Threshold, Interval, After, etc).
U64Value
Generic u64 carrier - used for tests and bb.u64-typed slot values that don’t have a more specific carrier above.
WireReqIdValue
Typed carrier for a wire_req_id (request/response correlation id minted by the wire syscall).