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

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]

pub fn new() -> Self[src]

Makes a new JsonEncoder instance.

Trait Implementations

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

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

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

type Item = T

The type of items to be encoded.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IoEncodeExt for T where
    T: Encode
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.