[][src]Trait tox_binary_io::ToBytes

pub trait ToBytes: Sized {
    pub 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

pub fn to_bytes<'a>(
    &self,
    buf: (&'a mut [u8], usize)
) -> Result<(&'a mut [u8], usize), GenError>
[src]

Serialize struct into raw bytes using cookie_factory

Loading content...

Implementations on Foreign Types

impl ToBytes for IpAddr[src]

impl ToBytes for Ipv4Addr[src]

impl ToBytes for Ipv6Addr[src]

Loading content...

Implementors

Loading content...