pub enum ProtocolError {
Show 24 variants
TruncatedHeader {
got: usize,
},
InvalidPacketLength {
length: usize,
minimum: usize,
},
IncompletePacket {
declared: usize,
available: usize,
},
PacketTooLarge {
length: usize,
},
UnsupportedVersion {
version: u16,
},
InvalidClientIdentity {
field: &'static str,
reason: Cow<'static, str>,
},
InvalidConnectDescriptor(String),
TtcDecode(&'static str),
UnknownMessageType {
message_type: u8,
position: usize,
},
ServerError(String),
ServerErrorWithRowCount {
message: String,
row_count: u64,
},
ServerErrorInfo(Box<ServerErrorDetails>),
UnsupportedFeature(&'static str),
MissingAuthParameter {
key: &'static str,
},
UnsupportedVerifier {
verifier_type: u32,
},
InvalidAesKey,
InvalidServerResponse,
ValueTooLarge {
actual_size: usize,
max_size: u32,
column_name: String,
row_num: u64,
},
NullsNotAllowed {
column_name: String,
row_num: u64,
},
DirectPathLoadTooMuchData,
NotImplemented(&'static str),
OsonNotEncoded(&'static str),
OsonInvalid(&'static str),
OsonTypeNotSupported(&'static str),
}Variants§
TruncatedHeader
InvalidPacketLength
IncompletePacket
PacketTooLarge
UnsupportedVersion
InvalidClientIdentity
InvalidConnectDescriptor(String)
TtcDecode(&'static str)
UnknownMessageType
ServerError(String)
ServerErrorWithRowCount
ServerErrorInfo(Box<ServerErrorDetails>)
UnsupportedFeature(&'static str)
MissingAuthParameter
UnsupportedVerifier
InvalidAesKey
InvalidServerResponse
ValueTooLarge
NullsNotAllowed
DirectPathLoadTooMuchData
NotImplemented(&'static str)
OsonNotEncoded(&'static str)
OsonInvalid(&'static str)
OsonTypeNotSupported(&'static str)
A JSON scalar node decoded to an Oracle type with no Python mapping (e.g. INTERVAL YEAR TO MONTH). Mirrors DPY-3007 / ERR_DB_TYPE_NOT_SUPPORTED.
Trait Implementations§
Source§impl Debug for ProtocolError
impl Debug for ProtocolError
Source§impl Display for ProtocolError
impl Display for ProtocolError
Source§impl Error for ProtocolError
impl Error for ProtocolError
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()
Auto Trait Implementations§
impl Freeze for ProtocolError
impl RefUnwindSafe for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl UnsafeUnpin for ProtocolError
impl UnwindSafe for ProtocolError
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