pub struct ExchangeSpec {
pub control: StreamSpec,
pub payload: ExchangePayloadSpec,
}Expand description
The physical resources used by an exchange table.
Fields§
§control: StreamSpecOne lossless, bounded control table. Its two byte directions carry fixed-size typed events, never application payload bytes.
payload: ExchangePayloadSpecPayload memory may be shared by both directions or split into two independently bounded arenas.
Implementations§
Source§impl ExchangeSpec
impl ExchangeSpec
pub const fn new(control: StreamSpec, payload: PayloadArenaSpec) -> Self
pub const fn directional( control: StreamSpec, a_to_b: PayloadArenaSpec, b_to_a: PayloadArenaSpec, ) -> Self
Sourcepub const fn payload_for(self, flow: Flow) -> PayloadArenaSpec
pub const fn payload_for(self, flow: Flow) -> PayloadArenaSpec
Physical payload arena used by one byte-flow direction.
Sourcepub const fn chunk_geometry(self, flow: Flow) -> Option<ChunkGeometry>
pub const fn chunk_geometry(self, flow: Flow) -> Option<ChunkGeometry>
Physical chunk geometry used by one byte-flow direction.
Trait Implementations§
Source§impl Clone for ExchangeSpec
impl Clone for ExchangeSpec
impl Copy for ExchangeSpec
Source§impl Debug for ExchangeSpec
impl Debug for ExchangeSpec
impl Eq for ExchangeSpec
Source§impl Hash for ExchangeSpec
impl Hash for ExchangeSpec
Source§impl PartialEq for ExchangeSpec
impl PartialEq for ExchangeSpec
impl StructuralPartialEq for ExchangeSpec
Auto Trait Implementations§
impl Forget for ExchangeSpec
impl Freeze for ExchangeSpec
impl RefUnwindSafe for ExchangeSpec
impl Send for ExchangeSpec
impl Sync for ExchangeSpec
impl Unpin for ExchangeSpec
impl UnsafeUnpin for ExchangeSpec
impl UnwindSafe for ExchangeSpec
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