Struct bytecodec::combinator::PreEncode [−][src]
pub struct PreEncode<E> { /* fields omitted */ }
Expand description
Combinator for pre-encoding items when start_encoding
method is called.
This is created by calling EncodeExt::pre_encode
method.
Implementations
Trait Implementations
Returns the exact number of bytes required to encode all the items remaining in the encoder.
Auto Trait Implementations
impl<E> RefUnwindSafe for PreEncode<E> where
E: RefUnwindSafe,
impl<E> UnwindSafe for PreEncode<E> where
E: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Encodes the items remaining in the encoder and writes the encoded bytes to the given write buffer. Read more
Encodes the items remaining in the encoder and
writes the encoded bytes to the given write buffer.
If the write buffer is full and the writing cannot be performed,
the given WriteBuf will memorize cx’s Waker
.
This Waker
’s wake
will later be called when the WriteBuf
regains its free space. Read more