Enum segment_rs::frame::Frame
source · [−]pub enum Frame {
String(Bytes),
Integer(i64),
Array(Vec<Frame>),
Boolean(bool),
Null,
Map(Vec<Frame>),
Double(f64),
Error(Bytes),
}
Expand description
Represents a Segment protocol frame
Variants
String(Bytes)
Represents a string frame which is a binary safe string
Integer(i64)
Represents an integer frame which is a signed 64 bit integer
Array(Vec<Frame>)
Represents an array frame which holds a Vec of frames
Boolean(bool)
Represents a boolean frame
Null
Represents a null frame
Map(Vec<Frame>)
Represents a map frame which is a collection of key value pairs. A Vec is used to represnt a map
Double(f64)
Represents an double frame which is a 64 bit floating point
Error(Bytes)
Represents a error frame which is a binary safe string
Trait Implementations
impl StructuralPartialEq for Frame
Auto Trait Implementations
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more