pub enum ErrorKind {
Show 15 variants
NoData,
InFlight,
MalformedUtf8,
MalformedSequence,
PathologicalSequence,
BadControl,
BadSequence,
NotASequence,
OutOfMemory,
TooFewCoordinates,
TooManyCoordinates,
EmptyCoordinate,
OversizedCoordinate,
MalformedCoordinate,
Unreadable,
}
Expand description
The enumeration of error kinds.
Variants§
NoData
No data is available when reading, most likely due to a timeout.
InFlight
The state machine is in-flight and hence reading raw bytes is not safe.
MalformedUtf8
A malformed UTF-8 character.
MalformedSequence
A malformed ANSI escape sequence.
PathologicalSequence
A pathological ANSI escape sequence is longer than a configurable threshold.
BadControl
A well-formed ANSI escape sequence starting with the wrong control.
BadSequence
An unexpected but well-formed ANSI escape sequence.
NotASequence
A token other than a sequence when a sequence is expected.
OutOfMemory
An ANSI escape sequence longer than the available internal buffer space.
TooFewCoordinates
Too few color components or coordinates.
TooManyCoordinates
Too many color components or coordinates.
EmptyCoordinate
Empty color coordinate.
OversizedCoordinate
Oversized color coordinate.
MalformedCoordinate
Malformed coordinate.
Unreadable
An error reading from the reader providing data.