pub enum ExchangePayloadSpec {
Shared(PayloadArenaSpec),
Directional {
a_to_b: PayloadArenaSpec,
b_to_a: PayloadArenaSpec,
},
}Expand description
How an exchange budgets payload memory for its two directions.
The shared form is the compact generic default. Directional arenas are for adapters whose two flows have deliberately different budgets (for example an upload and a streamed response) or must not consume each other’s credit.
Variants§
Directional
Implementations§
Source§impl ExchangePayloadSpec
impl ExchangePayloadSpec
Sourcepub const fn for_flow(self, flow: Flow) -> PayloadArenaSpec
pub const fn for_flow(self, flow: Flow) -> PayloadArenaSpec
Physical payload arena used by one byte-flow direction.
Trait Implementations§
Source§impl Clone for ExchangePayloadSpec
impl Clone for ExchangePayloadSpec
impl Copy for ExchangePayloadSpec
Source§impl Debug for ExchangePayloadSpec
impl Debug for ExchangePayloadSpec
impl Eq for ExchangePayloadSpec
Source§impl Hash for ExchangePayloadSpec
impl Hash for ExchangePayloadSpec
Source§impl PartialEq for ExchangePayloadSpec
impl PartialEq for ExchangePayloadSpec
impl StructuralPartialEq for ExchangePayloadSpec
Auto Trait Implementations§
impl Forget for ExchangePayloadSpec
impl Freeze for ExchangePayloadSpec
impl RefUnwindSafe for ExchangePayloadSpec
impl Send for ExchangePayloadSpec
impl Sync for ExchangePayloadSpec
impl Unpin for ExchangePayloadSpec
impl UnsafeUnpin for ExchangePayloadSpec
impl UnwindSafe for ExchangePayloadSpec
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