Struct bytecodec::json_codec::JsonEncoder [−][src]
pub struct JsonEncoder<T: Serialize>(_);
Expand description
JSON encoder.
Note that this encodes items monolithically so very large items may impair real-time property of the system.
Implementations
Trait Implementations
type Item = T
type Item = T
The type of items to be encoded.
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<T> RefUnwindSafe for JsonEncoder<T> where
T: RefUnwindSafe,
impl<T> Send for JsonEncoder<T> where
T: Send,
impl<T> Sync for JsonEncoder<T> where
T: Sync,
impl<T> Unpin for JsonEncoder<T> where
T: Unpin,
impl<T> UnwindSafe for JsonEncoder<T> where
T: 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