pub struct RingSpec {
pub capacity: usize,
pub payload_capacity: usize,
pub topology: RingTopology,
}Expand description
Physical policy for one OrbitTyped ring.
The policy is part of the wire contract: every process using the
same OrbitTyped::KIND must declare the same values.
Fields§
§capacity: usizeNumber of slots retained by the ring, per lane.
payload_capacity: usizeMaximum payload bytes stored inline in each slot.
topology: RingTopologyHow writers own and publish physical lanes.
Implementations§
Trait Implementations§
impl Copy for RingSpec
impl Eq for RingSpec
impl StructuralPartialEq for RingSpec
Auto Trait Implementations§
impl Freeze for RingSpec
impl RefUnwindSafe for RingSpec
impl Send for RingSpec
impl Sync for RingSpec
impl Unpin for RingSpec
impl UnsafeUnpin for RingSpec
impl UnwindSafe for RingSpec
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