Struct protobuf_native::io::DynZeroCopyInputStream
source · pub struct DynZeroCopyInputStream<'a> { /* private fields */ }
Expand description
An arbitrary stream that implements ZeroCopyInputStream
.
This is like Box<dyn ZeroCopyInputStream>
but it avoids additional virtual
method calls on the Rust side of the FFI boundary.
Trait Implementations§
source§impl<'a> Drop for DynZeroCopyInputStream<'a>
impl<'a> Drop for DynZeroCopyInputStream<'a>
source§impl ZeroCopyInputStream for DynZeroCopyInputStream<'_>
impl ZeroCopyInputStream for DynZeroCopyInputStream<'_>
source§fn next(self: Pin<&mut Self>) -> Result<&[u8], OperationFailedError>
fn next(self: Pin<&mut Self>) -> Result<&[u8], OperationFailedError>
Obtains a chunk of data from the stream. Read more
source§fn skip(self: Pin<&mut Self>, count: usize) -> Result<(), OperationFailedError>
fn skip(self: Pin<&mut Self>, count: usize) -> Result<(), OperationFailedError>
Skips
count
bytes. Read moresource§fn byte_count(&self) -> i64
fn byte_count(&self) -> i64
Returns the total number of bytes read since this stream was created.
Auto Trait Implementations§
impl<'a> Freeze for DynZeroCopyInputStream<'a>
impl<'a> RefUnwindSafe for DynZeroCopyInputStream<'a>
impl<'a> Send for DynZeroCopyInputStream<'a>
impl<'a> Sync for DynZeroCopyInputStream<'a>
impl<'a> !Unpin for DynZeroCopyInputStream<'a>
impl<'a> UnwindSafe for DynZeroCopyInputStream<'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