Trait cassandra_protocol::frame::traits::FromBytes

source ·
pub trait FromBytes {
    // Required method
    fn from_bytes(bytes: &[u8]) -> Result<Self>
       where Self: Sized;
}
Expand description

FromBytes should be used to parse an array of bytes into a structure.

Required Methods§

source

fn from_bytes(bytes: &[u8]) -> Result<Self>
where Self: Sized,

It gets and array of bytes and should return an implementor struct.

Implementors§