Enum soketto::connection::Error [−][src]
#[non_exhaustive]
pub enum Error {
Io(Error),
Codec(Error),
Extension(BoxedError),
UnexpectedOpCode(OpCode),
Utf8(Utf8Error),
MessageTooLarge {
current: usize,
maximum: usize,
},
Closed,
}Errors which may occur when sending or receiving messages.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)An I/O error was encountered.
Codec(Error)The base codec errored.
Extension(BoxedError)An extension produced an error while encoding or decoding.
UnexpectedOpCode(OpCode)An unexpected opcode was encountered.
Utf8(Utf8Error)A close reason was not correctly UTF-8 encoded.
The total message payload data size exceeds the configured maximum.
The connection is closed.