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 Debug for Separator
[src]

[src]

Formats the value using the given formatter.

impl Clone for Separator
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Separator
[src]

[src]

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