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]

[src]

Makes a new JsonEncoder instance.

Trait Implementations

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

[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.

[src]

Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more

[src]

Tries to start encoding the given item. Read more

[src]

Returns true if there are no items to be encoded in the encoder, otherwise false.

[src]

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]

[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