Type Alias DecodeError
Source pub type DecodeError = PgWireError;
pub enum DecodeError {
Show 26 variants
InvalidLength {
length: i32,
minimum: i32,
},
MessageTooLarge {
length: i32,
maximum: usize,
},
InvalidUtf8 {
context: &'static str,
},
MissingNul {
context: &'static str,
},
TrailingBytes {
context: &'static str,
remaining: usize,
},
UnexpectedEof {
context: &'static str,
},
UnsupportedProtocolVersion(i32),
InvalidCancelKeyLength {
length: usize,
minimum: usize,
maximum: usize,
},
CancelKeyLengthForProtocol {
length: usize,
major: u16,
minor: u16,
},
UnknownFrontendTag(u8),
InvalidFormatCode(i16),
InvalidTransactionStatus(u8),
EmbeddedNul {
context: &'static str,
},
EmptySaslMechanism,
EmptySaslMechanismList,
InvalidAuthenticationSequence {
state: &'static str,
message: &'static str,
},
InvalidSqlState {
code: String,
},
ParameterFormatCountMismatch {
format_count: usize,
parameter_count: usize,
},
FunctionArgumentFormatCountMismatch {
format_count: usize,
argument_count: usize,
},
ResultFormatCountMismatch {
format_count: usize,
column_count: usize,
},
FormatIndexOutOfRange {
context: &'static str,
index: usize,
count: usize,
},
InvalidCancelKeyLayerLength {
layer_length: usize,
key_length: usize,
},
BinaryColumnInTextCopy {
column: usize,
},
CountTooLarge {
context: &'static str,
count: usize,
},
LengthTooLarge {
context: &'static str,
length: usize,
},
NegativeValue {
context: &'static str,
},
}