pub struct Egress<'a, L: CodecLayer> { /* private fields */ }Implementations§
Source§impl<'a, L: CodecLayer> Egress<'a, L>
impl<'a, L: CodecLayer> Egress<'a, L>
pub fn push(&mut self, bytes: Bytes)
pub fn is_empty(&self) -> bool
Sourcepub fn codec_state(&mut self) -> &mut L::ConnState
pub fn codec_state(&mut self) -> &mut L::ConnState
Mutable access to the paired codec’s connection state.
The returned borrow is reborrowed from &mut self, so it must be
released (use ends) before any other Egress method can be called.
Typical usage is sequential: trigger a codec transition, then enqueue.
For the Plain layer, L::ConnState = () and this
returns a ZST &mut () — zero overhead.
Auto Trait Implementations§
impl<'a, L> !RefUnwindSafe for Egress<'a, L>
impl<'a, L> !Send for Egress<'a, L>
impl<'a, L> !Sync for Egress<'a, L>
impl<'a, L> !UnwindSafe for Egress<'a, L>
impl<'a, L> Freeze for Egress<'a, L>
impl<'a, L> Unpin for Egress<'a, L>
impl<'a, L> UnsafeUnpin for Egress<'a, L>
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