Enum netcode::SendError [] [src]

pub enum SendError {
    InvalidClientId,
    PacketEncodeError(PacketError),
    PacketSize,
    SocketError(Error),
    Disconnected,
}

Errors from sending packets

Variants

Client Id used for sending didn't exist.

Failed to encode the packet for sending.

Packet is larger than PACKET_MAX_PAYLOAD_SIZE or equals zero.

Generic io error.

Client/Server is disconnected and cannot send packets

Trait Implementations

impl Debug for SendError
[src]

Formats the value using the given formatter.

impl From<PacketError> for SendError
[src]

Performs the conversion.

impl From<Error> for SendError
[src]

Performs the conversion.