pub struct Plain;Expand description
Passthrough layer: no codec, no staging buffer, no codec state.
All trait methods are no-ops; pool’s IS_PASSTHROUGH branch never
dispatches them.
Trait Implementations§
Source§impl CodecLayer for Plain
impl CodecLayer for Plain
Source§const IS_PASSTHROUGH: bool = true
const IS_PASSTHROUGH: bool = true
True if this layer bypasses the codec staging path.
Pool branches on this const to pick the direct fill_msghdr path
(passthrough) vs the write_buf → process_outbound → take_inflight
path (codec). The branch is monomorphized → DCE.
type ConnState = ()
type WriteBuf = ()
fn is_active(_: &()) -> bool
fn process_inbound(_: &mut (), _: &[u8])
fn process_outbound(_: &mut (), _: &[u8])
fn take_plaintext(_: &mut ()) -> Vec<u8> ⓘ
fn install_plaintext(_: &mut (), _: Vec<u8>)
fn take_inflight(_: &mut ()) -> Option<(*const u8, u32)>
fn consume_inflight(_: &mut (), _: usize) -> bool
fn has_inflight(_: &()) -> bool
fn wire_slice(_: &()) -> &[u8] ⓘ
fn close_pending(_: &()) -> bool
Auto Trait Implementations§
impl Freeze for Plain
impl RefUnwindSafe for Plain
impl Send for Plain
impl Sync for Plain
impl Unpin for Plain
impl UnsafeUnpin for Plain
impl UnwindSafe for Plain
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