pub enum PgWireError {
Show 20 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,
},
InvalidSqlState {
code: String,
},
ParameterFormatCountMismatch {
format_count: usize,
parameter_count: usize,
},
FunctionArgumentFormatCountMismatch {
format_count: usize,
argument_count: usize,
},
BinaryColumnInTextCopy {
column: usize,
},
CountTooLarge {
context: &'static str,
count: usize,
},
LengthTooLarge {
context: &'static str,
length: usize,
},
NegativeValue {
context: &'static str,
},
}Variants§
InvalidLength
MessageTooLarge
InvalidUtf8
MissingNul
TrailingBytes
UnexpectedEof
UnsupportedProtocolVersion(i32)
InvalidCancelKeyLength
CancelKeyLengthForProtocol
UnknownFrontendTag(u8)
InvalidFormatCode(i16)
InvalidTransactionStatus(u8)
EmbeddedNul
InvalidSqlState
ParameterFormatCountMismatch
FunctionArgumentFormatCountMismatch
BinaryColumnInTextCopy
CountTooLarge
LengthTooLarge
NegativeValue
Trait Implementations§
Source§impl Debug for PgWireError
impl Debug for PgWireError
Source§impl Display for PgWireError
impl Display for PgWireError
impl Eq for PgWireError
Source§impl Error for PgWireError
impl Error for PgWireError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for PgWireError
impl PartialEq for PgWireError
impl StructuralPartialEq for PgWireError
Auto Trait Implementations§
impl Freeze for PgWireError
impl RefUnwindSafe for PgWireError
impl Send for PgWireError
impl Sync for PgWireError
impl Unpin for PgWireError
impl UnsafeUnpin for PgWireError
impl UnwindSafe for PgWireError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more