Struct bytecodec::json_codec::JsonEncoder[][src]

pub struct JsonEncoder<T: Serialize>(_);

JSON encoder.

Note that this encodes items monolithically so very large items may impair real-time property of the system.

Methods

impl<T> JsonEncoder<T> where
    T: Serialize
[src]

Makes a new JsonEncoder instance.

Trait Implementations

impl<T: Debug + Serialize> Debug for JsonEncoder<T>
[src]

Formats the value using the given formatter. Read more

impl<T> Encode for JsonEncoder<T> where
    T: Serialize
[src]

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

impl<T> Default for JsonEncoder<T> where
    T: Serialize
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<T> Send for JsonEncoder<T> where
    T: Send

impl<T> Sync for JsonEncoder<T> where
    T: Sync