Enum jsonrpc_server_utils::codecs::Separator
[−]
[src]
pub enum Separator { Empty, Byte(u8), }
Separator for enveloping messages in streaming codecs
Variants
Empty
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(u8)
Byte is used as an sentitel between messages
Trait Implementations
impl Clone for Separator
[src]
fn clone(&self) -> Separator
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more