Enum netcode::SendError
[−]
[src]
pub enum SendError { InvalidClientId, PacketEncodeError(PacketError), PacketSize, SocketError(Error), Disconnected, }
Errors from sending packets
Variants
InvalidClientId
Client Id used for sending didn't exist.
PacketEncodeError(PacketError)
Failed to encode the packet for sending.
PacketSize
Packet is larger than PACKET_MAX_PAYLOAD_SIZE or equals zero.
SocketError(Error)
Generic io error.
Disconnected
Client/Server is disconnected and cannot send packets