FromBytes

Trait FromBytes 

Source
pub trait FromBytes {
    // Required method
    fn from_bytes(
        bytes: &[u8],
        read_bytes: &mut i32,
    ) -> Result<Self, Box<dyn Error + Sync + Send>>
       where Self: Sized;
}
Expand description

The FromBytes trait needs to be implemented by all types that need to be decoded.

Required Methods§

Source

fn from_bytes( bytes: &[u8], read_bytes: &mut i32, ) -> Result<Self, Box<dyn Error + Sync + Send>>
where Self: Sized,

Implementations on Foreign Types§

Source§

impl FromBytes for bool

Source§

fn from_bytes( bytes: &[u8], read_bytes: &mut i32, ) -> Result<Self, Box<dyn Error + Sync + Send>>
where Self: Sized,

Source§

impl FromBytes for f32

Source§

fn from_bytes( bytes: &[u8], read_bytes: &mut i32, ) -> Result<Self, Box<dyn Error + Sync + Send>>
where Self: Sized,

Source§

impl FromBytes for f64

Source§

fn from_bytes( bytes: &[u8], read_bytes: &mut i32, ) -> Result<Self, Box<dyn Error + Sync + Send>>
where Self: Sized,

Source§

impl FromBytes for i16

Source§

fn from_bytes( bytes: &[u8], read_bytes: &mut i32, ) -> Result<Self, Box<dyn Error + Sync + Send>>
where Self: Sized,

Source§

impl FromBytes for i32

Source§

fn from_bytes( bytes: &[u8], read_bytes: &mut i32, ) -> Result<Self, Box<dyn Error + Sync + Send>>
where Self: Sized,

Source§

impl FromBytes for i64

Source§

fn from_bytes( bytes: &[u8], read_bytes: &mut i32, ) -> Result<Self, Box<dyn Error + Sync + Send>>
where Self: Sized,

Source§

impl FromBytes for u8

Source§

fn from_bytes( bytes: &[u8], read_bytes: &mut i32, ) -> Result<Self, Box<dyn Error + Sync + Send>>
where Self: Sized,

Source§

impl FromBytes for String

Source§

fn from_bytes( bytes: &[u8], read_bytes: &mut i32, ) -> Result<Self, Box<dyn Error + Sync + Send>>
where Self: Sized,

Source§

impl<T: FromBytes + Eq + Hash, U: FromBytes> FromBytes for HashMap<T, U>

Source§

fn from_bytes( bytes: &[u8], read_bytes: &mut i32, ) -> Result<Self, Box<dyn Error + Sync + Send>>
where Self: Sized,

Source§

impl<T: FromBytes> FromBytes for Option<T>

Source§

fn from_bytes( bytes: &[u8], read_bytes: &mut i32, ) -> Result<Self, Box<dyn Error + Sync + Send>>

Source§

impl<T: FromBytes> FromBytes for Vec<T>

Source§

fn from_bytes( bytes: &[u8], read_bytes: &mut i32, ) -> Result<Self, Box<dyn Error + Sync + Send>>
where Self: Sized,

Implementors§