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 batching(self, max: usize) -> Self
pub fn batching(self, max: usize) -> Self
The same sink for a client that takes batches (it offered batch at
its upgrade): up to max items a stream has ready go in one
notification. 0 or 1: one an item, as before.
Sourcepub fn with_inputs(self, table: Arc<InputTable>) -> Self
pub fn with_inputs(self, table: Arc<InputTable>) -> Self
BIDIR-6: the same sink carrying the connection’s input halves, where a
method with an Input finds its table.
Sourcepub fn inputs(&self) -> Option<&Arc<InputTable>>
pub fn inputs(&self) -> Option<&Arc<InputTable>>
BIDIR-6: the connection’s input halves, when its transport carries them.
Sourcepub fn encoding(&self) -> WireEncoding
pub fn encoding(&self) -> WireEncoding
The connection’s encoding.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FrameSink
impl !UnwindSafe for FrameSink
impl Forget for FrameSink
impl Freeze for FrameSink
impl Move for FrameSink
impl Send for FrameSink
impl Sync for FrameSink
impl Unpin for FrameSink
impl UnsafeUnpin 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