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
fn to_bytes<'a>(
&self,
buf: (&'a mut [u8], usize)
) -> Result<(&'a mut [u8], usize), GenError>
&self,
buf: (&'a mut [u8], usize)
) -> Result<(&'a mut [u8], usize), GenError>
Serialize struct into raw bytes using cookie_factory
Implementations on Foreign Types
impl ToBytes for IpAddr
[src]
impl ToBytes for IpAddr
impl ToBytes for Ipv4Addr
[src]
impl ToBytes for Ipv4Addr
impl ToBytes for Ipv6Addr
[src]
impl ToBytes for Ipv6Addr
Implementors
impl ToBytes for NospamKeys
impl ToBytes for Name
impl ToBytes for DhtState
impl ToBytes for UserStatus
impl ToBytes for StatusMsg
impl ToBytes for OldIpPort
impl ToBytes for TcpUdpPackedNode
impl ToBytes for TcpRelays
impl ToBytes for PathNodes
impl ToBytes for FriendState
impl ToBytes for Friends
impl ToBytes for Eof
impl ToBytes for Section
impl ToBytes for State
impl ToBytes for NoSpam
impl ToBytes for ToxId
impl ToBytes for ClientHandshake
impl ToBytes for ServerHandshake
impl ToBytes for HandshakePayload
impl ToBytes for RouteRequest
impl ToBytes for RouteResponse
impl ToBytes for ConnectNotification
impl ToBytes for DisconnectNotification
impl ToBytes for tox::toxcore::tcp::packet::PingRequest
impl ToBytes for PongResponse
impl ToBytes for OobSend
impl ToBytes for OobReceive
impl ToBytes for OnionRequest
impl ToBytes for OnionResponse
impl ToBytes for Data
impl ToBytes for tox::toxcore::tcp::packet::Packet
impl ToBytes for EncryptedPacket
impl ToBytes for tox::toxcore::dht::packet::PingRequest
impl ToBytes for PingRequestPayload
impl ToBytes for PingResponse
impl ToBytes for PingResponsePayload
impl ToBytes for NodesRequest
impl ToBytes for NodesRequestPayload
impl ToBytes for NodesResponse
impl ToBytes for NodesResponsePayload
impl ToBytes for DhtRequest
impl ToBytes for DhtRequestPayload
impl ToBytes for NatPingRequest
impl ToBytes for NatPingResponse
impl ToBytes for DhtPkAnnounce
impl ToBytes for CookieRequest
impl ToBytes for CookieRequestPayload
impl ToBytes for CookieResponse
impl ToBytes for CookieResponsePayload
impl ToBytes for BootstrapInfo
impl ToBytes for LanDiscovery
impl ToBytes for CryptoHandshake
impl ToBytes for CryptoHandshakePayload
impl ToBytes for CryptoData
impl ToBytes for CryptoDataPayload
impl ToBytes for Cookie
impl ToBytes for EncryptedCookie
impl ToBytes for tox::toxcore::dht::packet::Packet
impl ToBytes for PackedNode
impl ToBytes for InnerOnionAnnounceRequest
impl ToBytes for OnionAnnounceRequest
impl ToBytes for OnionAnnounceRequestPayload
impl ToBytes for OnionAnnounceResponse
impl ToBytes for OnionAnnounceResponsePayload
impl ToBytes for InnerOnionRequest
impl ToBytes for InnerOnionResponse
impl ToBytes for InnerOnionDataRequest
impl ToBytes for OnionDataRequest
impl ToBytes for OnionDataResponse
impl ToBytes for OnionRequest0
impl ToBytes for OnionRequest0Payload
impl ToBytes for OnionRequest1
impl ToBytes for OnionRequest1Payload
impl ToBytes for OnionRequest2
impl ToBytes for OnionRequest2Payload
impl ToBytes for OnionResponse1
impl ToBytes for OnionResponse2
impl ToBytes for OnionResponse3
impl ToBytes for IpPort
impl ToBytes for OnionReturn
impl ToBytes for AnnounceStatus
impl ToBytes for Alive
impl ToBytes for ShareRelays
impl ToBytes for FriendRequests
impl ToBytes for tox::toxcore::friend_connection::packet::Packet