pub struct FrameSink { /* private fields */ }Expand description
The frames a transport takes from a connection’s calls (plexus-transport’s socket loop puts one in each call’s extensions): each item a frame, in order, written as it is. Cheap to clone.
Implementations§
Source§impl FrameSink
impl FrameSink
Sourcepub fn channel(
capacity: usize,
encoding: WireEncoding,
) -> (FrameSink, FrameReceiver)
pub fn channel( capacity: usize, encoding: WireEncoding, ) -> (FrameSink, FrameReceiver)
A connection’s frame queue, bounded at capacity frames.
Sourcepub fn encoding(&self) -> WireEncoding
pub fn encoding(&self) -> WireEncoding
The connection’s encoding.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrameSink
impl RefUnwindSafe for FrameSink
impl Send for FrameSink
impl Sync for FrameSink
impl Unpin for FrameSink
impl UnsafeUnpin for FrameSink
impl UnwindSafe for FrameSink
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