pub enum ErrorKind {
NoError,
TooManyRetries,
NotConnected,
ParseFailed,
WrongSequence,
PeerReported,
ProtocolViolation,
ResourceExhaustion,
UnsupportedOperation,
}Expand description
Represents the category of an error that has occurred.
This enum is used in SocketEvent::OnError and SocketEvent::OnAborted to provide
information about the nature of the error.
Variants§
NoError
Indicates that no error has occurred. This will never be the case when
SocketEvent::OnError or SocketEvent::OnAborted is called.
TooManyRetries
The operation could not be completed because of too many retransmissions or timeouts. This typically indicates a loss of connectivity to the peer.
NotConnected
A command was received that is only possible to execute when the socket is connected,
but the socket is not in a Connected state.
ParseFailed
Parsing of an incoming SCTP packet or its parameters failed. This can happen if the packet is malformed.
WrongSequence
SCTP chunks were received in an unexpected sequence, which may indicate a synchronization mismatch between the peers.
PeerReported
The peer has reported an issue by sending an ERROR or ABORT chunk. The specific
cause is included in the string provided with the event.
ProtocolViolation
The peer has performed a protocol violation, such as sending an invalid chunk or parameter that violates the SCTP specification.
ResourceExhaustion
The socket’s internal send or receive buffers have been exhausted, and no more data can be queued. This can happen if data is being produced faster than it can be sent or processed.
UnsupportedOperation
The client application has attempted to perform an invalid or unsupported operation on the socket.