pub struct BufferSink { /* private fields */ }Expand description
Collects response bytes for a host that owns its own transport.
flush is deliberately a no-op: a semantic flush means “these bytes are
complete and may be sent”, and for an encoder that is exactly the point at
which the method returns them to the host.
Trait Implementations§
Source§impl Default for BufferSink
impl Default for BufferSink
Source§fn default() -> BufferSink
fn default() -> BufferSink
Returns the “default value” for a type. Read more
Source§impl FlushWriter for BufferSink
impl FlushWriter for BufferSink
Auto Trait Implementations§
impl Freeze for BufferSink
impl RefUnwindSafe for BufferSink
impl Send for BufferSink
impl Sync for BufferSink
impl Unpin for BufferSink
impl UnsafeUnpin for BufferSink
impl UnwindSafe for BufferSink
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