Trait cassandra_protocol::frame::traits::Serialize [−][src]
pub trait Serialize {
fn serialize(&self, cursor: &mut Cursor<&mut Vec<u8>>);
fn serialize_to_vec(&self) -> Vec<u8> { ... }
}
Expand description
Trait that should be implemented by all types that wish to be serialized to a buffer.
Required methods
Provided methods
fn serialize_to_vec(&self) -> Vec<u8>
fn serialize_to_vec(&self) -> Vec<u8>
Wrapper for easily starting hierarchical serialization.