pub struct WriterFlushSender { /* private fields */ }Implementations§
Source§impl WriterFlushSender
impl WriterFlushSender
pub fn id(&self) -> u64
pub fn unflushed_bytes(&self) -> usize
pub fn flush(&self)
Sourcepub fn send_complete_buffer(&self, buffer: BufferPtr)
pub fn send_complete_buffer(&self, buffer: BufferPtr)
Enqueue a complete buffer to be sent toward the WriterFlushReceiver upon the next call to
flush.
The buffer must previously have been been marked via mark_complete_buffer.
Sourcepub fn mark_complete_buffer(buffer: BufferPtr, len: u32)
pub fn mark_complete_buffer(buffer: BufferPtr, len: u32)
Prepare a buffer to be flushed without actually flushing it.
This is a low-level operation that allows preparing written buffers externally (not
using a bab::Writer) and sending them to the WriterFlushReceiver via
send_complete_buffer.
Sourcepub fn get_complete_buffer_len(buffer: BufferPtr) -> u32
pub fn get_complete_buffer_len(buffer: BufferPtr) -> u32
Get the written length of a complete buffer previously marked via mark_complete_buffer.
Trait Implementations§
Source§impl Clone for WriterFlushSender
impl Clone for WriterFlushSender
Source§fn clone(&self) -> WriterFlushSender
fn clone(&self) -> WriterFlushSender
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WriterFlushSender
impl !RefUnwindSafe for WriterFlushSender
impl Send for WriterFlushSender
impl Sync for WriterFlushSender
impl Unpin for WriterFlushSender
impl !UnwindSafe for WriterFlushSender
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