Trait tox::toxcore::binary_io::ToBytes[][src]

pub trait ToBytes: Sized {
    fn to_bytes<'a>(
        &self,
        buf: (&'a mut [u8], usize)
    ) -> Result<(&'a mut [u8], usize), GenError>; }

The trait provides method to serialize struct into raw bytes

Required Methods

Serialize struct into raw bytes using cookie_factory

Implementations on Foreign Types

impl ToBytes for IpAddr
[src]

impl ToBytes for Ipv4Addr
[src]

impl ToBytes for Ipv6Addr
[src]

Implementors