Struct protobuf_native::io::WriterStream
source · pub struct WriterStream<'a> { /* private fields */ }
Expand description
Converts an Write
implementor to a ZeroCopyOutputStream
.
Implementations§
source§impl<'a> WriterStream<'a>
impl<'a> WriterStream<'a>
Trait Implementations§
source§impl<'a> Drop for WriterStream<'a>
impl<'a> Drop for WriterStream<'a>
source§impl<'a> ZeroCopyOutputStream for WriterStream<'a>
impl<'a> ZeroCopyOutputStream for WriterStream<'a>
source§unsafe fn next(
self: Pin<&mut Self>,
) -> Result<&mut [MaybeUninit<u8>], OperationFailedError>
unsafe fn next( self: Pin<&mut Self>, ) -> Result<&mut [MaybeUninit<u8>], OperationFailedError>
Obtains a buffer into which data can be written. Read more
source§fn byte_count(&self) -> i64
fn byte_count(&self) -> i64
Returns the total number of bytes written since this object was created.
Auto Trait Implementations§
impl<'a> Freeze for WriterStream<'a>
impl<'a> RefUnwindSafe for WriterStream<'a>
impl<'a> Send for WriterStream<'a>
impl<'a> Sync for WriterStream<'a>
impl<'a> !Unpin for WriterStream<'a>
impl<'a> !UnwindSafe for WriterStream<'a>
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