Enum solana_jsonrpc_server_utils::codecs::Separator [−][src]
pub enum Separator {
Empty,
Byte(u8),
}Separator for enveloping messages in streaming codecs
Variants
EmptyNo 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 Debug for Separator[src]
impl Debug for Separatorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Separator[src]
impl Clone for Separatorfn clone(&self) -> Separator[src]
fn clone(&self) -> SeparatorReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Default for Separator[src]
impl Default for Separator