pub struct MsgPackWriter<W> { /* private fields */ }

Implementations

Write any int (u8-u64,i8-i64) in the most efficient representation

Encodes and attempts to write the most efficient binary array length representation TODO: return binwriter

Encodes and attempts to write the most efficient binary representation

Encodes and attempts to write the most efficient binary array length representation TODO: return str writer

Encodes and attempts to write the most efficient binary representation

Encodes and attempts to write the most efficient binary representation

Encodes and attempts to write the most efficient ext metadata representation

Panics

Panics if ty is negative, because it is reserved for future MessagePack extension including 2-byte type information.

Encodes and attempts to write a dynamic rmpv::Value

Panics

Panics if array or map length exceeds 2^32-1

Encodes and attempts to write a dynamic rmpv::ValueRef

Panics

Panics if array or map length exceeds 2^32-1

Trait Implementations

Attempt to write bytes from buf into the object. Read more

Attempt to flush the object, ensuring that any buffered data reach their destination. Read more

Attempt to close the object. Read more

Attempt to write bytes from bufs into the object using vectored IO operations. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Creates a future which will entirely flush this AsyncWrite. Read more

Creates a future which will entirely close this AsyncWrite.

Creates a future which will write bytes from buf into the object. Read more

Creates a future which will write bytes from bufs into the object using vectored IO operations. Read more

Write data into this object. Read more

Allow using an [AsyncWrite] as a Sink<Item: AsRef<[u8]>>. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.