Enum jsonrpc_server_utils::codecs::Separator [] [src]

pub enum Separator {
    Empty,
    Byte(u8),
}

Separator for enveloping messages in streaming codecs

Variants

No envelope is expected between messages. Decoder will try to figure out message boundaries by accumulating incoming bytes until valid JSON is formed. Encoder will send messages without any boundaries between requests.

Byte is used as an sentitel between messages

Trait Implementations

impl Clone for Separator
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Separator
[src]

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