[−][src]Struct protobuf::stream::CodedOutputStream
Methods
impl<'a> CodedOutputStream<'a>
[src]
impl<'a> CodedOutputStream<'a>
ⓘImportant traits for CodedOutputStream<'a>
ⓘImportant traits for CodedOutputStream<'a>
pub fn new(writer: &'a mut dyn Write) -> CodedOutputStream<'a> | [src] |
ⓘImportant traits for CodedOutputStream<'a>
ⓘImportant traits for CodedOutputStream<'a>
pub fn bytes(bytes: &'a mut [u8]) -> CodedOutputStream<'a> | [src] |
CodedOutputStream
which writes directly to bytes.
Attempt to write more than bytes capacity results in error.
ⓘImportant traits for CodedOutputStream<'a>
ⓘImportant traits for CodedOutputStream<'a>
pub fn vec(vec: &'a mut Vec<u8>) -> CodedOutputStream<'a> | [src] |
CodedOutputStream
which writes directly to Vec<u8>
.
Caller should call flush
at the end to guarantee vec contains
all written data.
pub fn check_eof(&self) | [src] |
pub fn flush(&mut self) -> ProtobufResult<()> | [src] |
pub fn write_raw_byte(&mut self, byte: u8) -> ProtobufResult<()> | [src] |
pub fn write_raw_bytes(&mut self, bytes: &[u8]) -> ProtobufResult<()> | [src] |
pub fn write_tag( | [src] |
pub fn write_raw_varint32(&mut self, value: u32) -> ProtobufResult<()> | [src] |
pub fn write_raw_varint64(&mut self, value: u64) -> ProtobufResult<()> | [src] |
pub fn write_raw_little_endian32(&mut self, value: u32) -> ProtobufResult<()> | [src] |
pub fn write_raw_little_endian64(&mut self, value: u64) -> ProtobufResult<()> | [src] |
pub fn write_float_no_tag(&mut self, value: f32) -> ProtobufResult<()> | [src] |
pub fn write_double_no_tag(&mut self, value: f64) -> ProtobufResult<()> | [src] |
pub fn write_float( | [src] |
pub fn write_double( | [src] |
pub fn write_uint64_no_tag(&mut self, value: u64) -> ProtobufResult<()> | [src] |
pub fn write_uint32_no_tag(&mut self, value: u32) -> ProtobufResult<()> | [src] |
pub fn write_int64_no_tag(&mut self, value: i64) -> ProtobufResult<()> | [src] |
pub fn write_int32_no_tag(&mut self, value: i32) -> ProtobufResult<()> | [src] |
pub fn write_sint64_no_tag(&mut self, value: i64) -> ProtobufResult<()> | [src] |
pub fn write_sint32_no_tag(&mut self, value: i32) -> ProtobufResult<()> | [src] |
pub fn write_fixed64_no_tag(&mut self, value: u64) -> ProtobufResult<()> | [src] |
pub fn write_fixed32_no_tag(&mut self, value: u32) -> ProtobufResult<()> | [src] |
pub fn write_sfixed64_no_tag(&mut self, value: i64) -> ProtobufResult<()> | [src] |
pub fn write_sfixed32_no_tag(&mut self, value: i32) -> ProtobufResult<()> | [src] |
pub fn write_bool_no_tag(&mut self, value: bool) -> ProtobufResult<()> | [src] |
pub fn write_enum_no_tag(&mut self, value: i32) -> ProtobufResult<()> | [src] |
pub fn write_enum_obj_no_tag<E>(&mut self, value: E) -> ProtobufResult<()> where | [src] |
pub fn write_unknown_no_tag( | [src] |
pub fn write_uint64( | [src] |
pub fn write_uint32( | [src] |
pub fn write_int64( | [src] |
pub fn write_int32( | [src] |
pub fn write_sint64( | [src] |
pub fn write_sint32( | [src] |
pub fn write_fixed64( | [src] |
pub fn write_fixed32( | [src] |
pub fn write_sfixed64( | [src] |
pub fn write_sfixed32( | [src] |
pub fn write_bool( | [src] |
pub fn write_enum( | [src] |
pub fn write_enum_obj<E>( | [src] |
pub fn write_unknown( | [src] |
pub fn write_unknown_fields( | [src] |
pub fn write_bytes_no_tag(&mut self, bytes: &[u8]) -> ProtobufResult<()> | [src] |
pub fn write_string_no_tag(&mut self, s: &str) -> ProtobufResult<()> | [src] |
pub fn write_message_no_tag<M: Message>( | [src] |
pub fn write_bytes( | [src] |
pub fn write_string(&mut self, field_number: u32, s: &str) -> ProtobufResult<()> | [src] |
pub fn write_message<M: Message>( | [src] |
Trait Implementations
impl<'a> Write for CodedOutputStream<'a>
[src]
impl<'a> Write for CodedOutputStream<'a>
fn write(&mut self, buf: &[u8]) -> Result<usize> | [src] |
fn flush(&mut self) -> Result<()> | [src] |
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error> | 1.0.0 [src] |
Attempts to write an entire buffer into this writer. Read more
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error> | 1.0.0 [src] |
Writes a formatted string into this writer, returning any error encountered. Read more
fn by_ref(&mut self) -> &mut Self | 1.0.0 [src] |
Creates a "by reference" adaptor for this instance of Write
. Read more
Auto Trait Implementations
impl<'a> !Send for CodedOutputStream<'a>
impl<'a> !Send for CodedOutputStream<'a>
impl<'a> !Sync for CodedOutputStream<'a>
impl<'a> !Sync for CodedOutputStream<'a>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |