pub struct StreamWriter<W> { /* private fields */ }Expand description
Stream writer for efficient data output
Implementations§
Source§impl<W: Write> StreamWriter<W>
impl<W: Write> StreamWriter<W>
Sourcepub fn with_buffer_size(writer: W, buffer_size: usize) -> Self
pub fn with_buffer_size(writer: W, buffer_size: usize) -> Self
Create a new stream writer with custom buffer size
Sourcepub fn write_chunk(&mut self, data: &[u8]) -> Result<()>
pub fn write_chunk(&mut self, data: &[u8]) -> Result<()>
Write a chunk of data
Auto Trait Implementations§
impl<W> Freeze for StreamWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for StreamWriter<W>where
W: RefUnwindSafe,
impl<W> Send for StreamWriter<W>where
W: Send,
impl<W> Sync for StreamWriter<W>where
W: Sync,
impl<W> Unpin for StreamWriter<W>where
W: Unpin,
impl<W> UnwindSafe for StreamWriter<W>where
W: UnwindSafe,
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