Struct protobuf_native::io::ReaderStream
source · pub struct ReaderStream<'a> { /* private fields */ }
Expand description
Converts an Read
implementor to a ZeroCopyInputStream
.
Implementations§
source§impl<'a> ReaderStream<'a>
impl<'a> ReaderStream<'a>
Trait Implementations§
source§impl<'a> Drop for ReaderStream<'a>
impl<'a> Drop for ReaderStream<'a>
source§impl<'a> ZeroCopyInputStream for ReaderStream<'a>
impl<'a> ZeroCopyInputStream for ReaderStream<'a>
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 ReaderStream<'a>
impl<'a> RefUnwindSafe for ReaderStream<'a>
impl<'a> Send for ReaderStream<'a>
impl<'a> Sync for ReaderStream<'a>
impl<'a> !Unpin for ReaderStream<'a>
impl<'a> UnwindSafe for ReaderStream<'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