Struct protobuf_native::io::VecOutputStream
source · pub struct VecOutputStream<'a> { /* private fields */ }
Expand description
A ZeroCopyOutputStream
specialized for writing to byte vectors.
Using this type is more efficient than using a WriterStream
when the
underlying writer is a byte vector.
Implementations§
source§impl<'a> VecOutputStream<'a>
impl<'a> VecOutputStream<'a>
Trait Implementations§
source§impl<'a> Drop for VecOutputStream<'a>
impl<'a> Drop for VecOutputStream<'a>
source§impl<'a> ZeroCopyOutputStream for VecOutputStream<'a>
impl<'a> ZeroCopyOutputStream for VecOutputStream<'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 VecOutputStream<'a>
impl<'a> RefUnwindSafe for VecOutputStream<'a>
impl<'a> Send for VecOutputStream<'a>
impl<'a> Sync for VecOutputStream<'a>
impl<'a> !Unpin for VecOutputStream<'a>
impl<'a> UnwindSafe for VecOutputStream<'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