Module utils

Module utils 

Source

Functionsยง

get_array
A utility function to get a Vec from a Bytes.
get_bool
A utility function to get a bool from a Bytes.
get_hashset
A utility function to get a HashSet from a Bytes.
get_i8
A utility function to get a i8 from a Bytes.
get_i16
A utility function to get a i16 from a Bytes.
get_i32
A utility function to get a i32 from a Bytes.
get_i64
A utility function to get a i64 from a Bytes.
get_option
A utility function to get an Option from a Bytes.
get_option_array
A utility function to get an Vec<Option> from a Bytes.
get_string
A utility function to get a String from a Bytes.
get_u8
A utility function to get a u8 from a Bytes.
get_u16
A utility function to get a u16 from a Bytes.
get_u32
A utility function to get a u32 from a Bytes.
get_u64
A utility function to get a u64 from a Bytes.
put_array
A utility function to put a Vec into a BytesMut.
put_hashset
A utility function to put a HashSet into a BytesMut.
put_option
A utility function to put an Option into a BytesMut.
put_option_array
A utility function to put a Vec<Option> into a BytesMut.
put_str
A utility function to put a &str into a BytesMut.