Struct protobuf_native::io::CodedOutputStream
source · pub struct CodedOutputStream<'a> { /* private fields */ }
Expand description
Type which encodes and writes binary data which is composed of varint- encoded integers and fixed-width pieces.
Wraps a ZeroCopyOutputStream
. Most users will not need to deal with
CodedOutputStream
.
Most methods of CodedOutputStream
which return a bool
return false if an
underlying I/O error occurs. Once such a failure occurs, the
CodedOutputStream is broken and is no longer useful. The write_*
methods
do not return the stream status, but will invalidate the stream if an error
occurs. The client can probe had_error
to determine the status.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CodedOutputStream<'a>
impl<'a> RefUnwindSafe for CodedOutputStream<'a>
impl<'a> Send for CodedOutputStream<'a>
impl<'a> Sync for CodedOutputStream<'a>
impl<'a> !Unpin for CodedOutputStream<'a>
impl<'a> UnwindSafe for CodedOutputStream<'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