Module streamduck_core::socket
source · [−]Expand description
Socket related definitions
Structs
Manager of socket listeners
Socket packet
Pool of messages for socket implementations
Enums
Enumeration of various errors during sending and parsing packets
Traits
Trait for serialization and deserialization util functions
Socket listener, something that can listen in to socket connections
Functions
Checks if packet is of a certain type, for requests without any parameters
Attempts to parse socket data into a specified type
Sends a packet with included requester ID from previous package, without data
Sends a packet with included requester ID from previous package
Sends a packet as is
Sends a packet with included requester ID from previous package
Sends packet to all socket connections in different thread, so current thread won’t have to wait for write locks
Writes bytes in chunks
Type Definitions
Type for listener’s socket handles
Boxed socket listener