Enum ron_crdt::op::Terminator
source · pub enum Terminator {
Raw,
Query,
Header,
Reduced,
}
Expand description
Op terminator
Variants§
Raw
Raw ops are stand-alone within a frame.
Query
Query ops, as well as reduced ops following them, create a chunk in a frame.
Header
Header ops, as well as reduced ops following them, create a chunk in a frame.
Reduced
Reduced ops belong to the query/header op before them.
Implementations§
source§impl Terminator
impl Terminator
sourcepub fn from_string(inp: &str) -> Result<Terminator, &'static str>
pub fn from_string(inp: &str) -> Result<Terminator, &'static str>
Parse a terminator from inp
.
Trait Implementations§
source§impl Clone for Terminator
impl Clone for Terminator
source§fn clone(&self) -> Terminator
fn clone(&self) -> Terminator
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Terminator
impl Debug for Terminator
source§impl Default for Terminator
impl Default for Terminator
source§fn default() -> Terminator
fn default() -> Terminator
Returns the “default value” for a type. Read more