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.
Sourcepub fn end_saying(&self, why: &str)
pub fn end_saying(&self, why: &str)
KEEL-59: the connection is about to close because its sign-in ended
(why, for the caller): from now each call on it, as it learns the
connection is closing, writes one unauthenticated item saying why
before it ends — the transport closes the method table first and the
frames after, so those items go out ahead of the close. The first
why stands.