Enum soketto::base::Error [−][src]
#[non_exhaustive]
pub enum Error {
Io(Error),
UnknownOpCode,
ReservedOpCode,
FragmentedControl,
InvalidControlFrameLen,
InvalidReservedBit(u8),
PayloadTooLarge {
actual: u64,
maximum: u64,
},
}Error cases the base frame decoder may encounter.
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 has been encountered.
Some unknown opcode number has been decoded.
The opcode decoded is reserved.
A fragmented control frame (fin bit not set) has been decoded.
A control frame with an invalid length code has been decoded.
InvalidReservedBit(u8)The reserved bit is invalid.
The payload length of a frame exceeded the configured maximum.
Trait Implementations
impl From<UnknownOpCode> for Error[src]
impl From<UnknownOpCode> for Error[src]