pub struct AsyncProstWriter<W, T, D> { /* fields omitted */ }
Expand description
A warpper around an async sink that accepts, serializes, and sends prost-encoded values.
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
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
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
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.