Struct bytecodec::monolithic::MonolithicEncoder [−][src]
pub struct MonolithicEncoder<E: MonolithicEncode> { /* fields omitted */ }
Expand description
Monolithic encoder that implements Encode
trait.
Implementations
Takes ownership of MonolithicEncoder
and returns the inner encoder.
Trait Implementations
Returns the “default value” for a type. Read more
Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more
Tries to start encoding the given item. Read more
Returns true
if there are no items to be encoded in the encoder, otherwise false
. Read more
Returns the number of bytes required to encode all the items in the encoder. Read more
Auto Trait Implementations
impl<E> RefUnwindSafe for MonolithicEncoder<E> where
E: RefUnwindSafe,
<E as MonolithicEncode>::Item: RefUnwindSafe,
impl<E> Send for MonolithicEncoder<E> where
E: Send,
<E as MonolithicEncode>::Item: Send,
impl<E> Sync for MonolithicEncoder<E> where
E: Sync,
<E as MonolithicEncode>::Item: Sync,
impl<E> Unpin for MonolithicEncoder<E> where
E: Unpin,
<E as MonolithicEncode>::Item: Unpin,
impl<E> UnwindSafe for MonolithicEncoder<E> where
E: UnwindSafe,
<E as MonolithicEncode>::Item: 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