Skip to main content

OrbitTyped

Trait OrbitTyped 

Source
pub trait OrbitTyped:
    Clone
    + Send
    + Sync
    + 'static {
    const KIND: u8;
    const RING_SPEC: RingSpec;
}
Expand description

Marker for a type that has a stable wire identity across the fleet.

Required bounds:

  • Clone — values may be delivered to multiple subscribers / nodes.
  • Send + Sync + 'static — values cross thread / process boundaries.

Required Associated Constants§

Source

const KIND: u8

Stable wire identifier. Hand-picked in V0; build.rs-generated later.

Source

const RING_SPEC: RingSpec

Ring layout and retention policy for this wire kind.

This is part of the cross-process wire contract. Reusing a KIND with a different spec is an error.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§