Struct bytecodec::bincode_codec::BincodeEncoder [] [src]

pub struct BincodeEncoder<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> BincodeEncoder<T> where
    T: Serialize
[src]

[src]

Makes a new BincodeEncoder instance.

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

impl<T> Encode for BincodeEncoder<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 BincodeEncoder<T> where
    T: Serialize
[src]

[src]

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

Auto Trait Implementations

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

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