Module protocol

Module protocol 

Source
Expand description

This is probably the most interesting part for you.

Re-exports§

pub use super::socket::*;

Constants§

PACKET_SIZE

Functions§

receive_bytes
receive_bytes_with_max_size
Receive a byte stream.
This is part of the basic protocol beneath all communication. \
receive_message
Convenience wrapper that receives a message and converts it into T.
receive_request
Convenience wrapper that wraps receive_message for Requests
receive_response
Convenience wrapper that wraps receive_message for Responses
send_bytes
Send a Vec of bytes. This is part of the basic protocol beneath all communication. \
send_message
Convenience wrapper around send_bytes. Deserialize a message and feed the bytes into send_bytes.
send_request
Convenience wrapper around send_message to directly send Requests.
send_response
Convenience wrapper around send_message to directly send Responses.