Struct async_prost::AsyncProstWriter[][src]

pub struct AsyncProstWriter<W, T, D> { /* fields omitted */ }
Expand description

A warpper around an async sink that accepts, serializes, and sends prost-encoded values.

Implementations

create a new async prost writer

Gets a reference to the underlying writer.

Gets a mutable reference to the underlying writer.

Unwraps this AsyncProstWriter, returning the underlying writer.

Note that any leftover serialized data that has not yet been sent is lost.

make this writer include the serialized data’s size before each serialized value.

make this writer include the serialized data’s header and body size before serialized value

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

The type of value produced by the sink when an error occurs.

Attempts to prepare the Sink to receive a value. Read more

Begin the process of sending a value to the sink. Each call to this function must be preceded by a successful call to poll_ready which returned Poll::Ready(Ok(())). Read more

Flush any remaining output from this sink. Read more

Flush any remaining output and close this sink, if necessary. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

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.