Expand description
Socket related definitions
Structs§
- Socket
Manager - Manager of socket listeners
- Socket
Packet - Socket packet
- Socket
Pool - Pool of messages for socket implementations
Enums§
- Socket
Error - Enumeration of various errors during sending and parsing packets
Traits§
- Socket
Data - Trait for serialization and deserialization util functions
- Socket
Listener - Socket listener, something that can listen in to socket connections
Functions§
- check_
packet_ for_ data - Checks if packet is of a certain type, for requests without any parameters
- parse_
packet_ to_ data - Attempts to parse socket data into a specified type
- send_
event_ to_ socket - Puts together an event packet and sends it
- send_
no_ data_ packet_ with_ requester - Sends a packet with included requester ID from previous package, without data
- send_
no_ data_ packet_ with_ requester_ sync - Sends a packet with included requester ID from previous package, without data, with sync IO
- send_
packet - Sends a packet with included requester ID from previous package
- send_
packet_ as_ is - Sends a packet as is
- send_
packet_ as_ is_ sync - Sends a packet as is with sync IO
- send_
packet_ sync - Sends a packet with included requester ID from previous package with sync IO
- send_
packet_ with_ requester - Sends a packet with included requester ID from previous package
- send_
packet_ with_ requester_ sync - Sends a packet with included requester ID from previous package with sync IO
- write_
in_ chunks - Writes bytes in chunks
- write_
in_ chunks_ sync - Writes bytes in chunks with sync IO
Type Aliases§
- Socket
Handle - Type for listener’s socket handles
- Unique
Socket Listener - Boxed socket listener