#[non_exhaustive]pub enum ProtocolError {
Show 14 variants
BufferUnderflow {
expected: usize,
got: usize,
},
UnknownTypeCode(u8),
UnexpectedNull,
InvalidUtf8(FromUtf8Error),
HandshakeFailed {
server_major: i16,
server_minor: i16,
server_patch: i16,
message: String,
},
ServerError {
status: i32,
message: String,
},
DecimalError(String),
CompactFooterNeedsSchema,
MalformedBinaryObject(String),
RecursionLimitExceeded,
MalformedResponse(String),
TypeMismatch {
expected: &'static str,
got: &'static str,
},
BinaryTypeNotRegistered(i32),
SchemaNotFound {
type_id: i32,
schema_id: i32,
},
}Variants (Non-exhaustive)§
This enum is marked as 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.
BufferUnderflow
UnknownTypeCode(u8)
UnexpectedNull
InvalidUtf8(FromUtf8Error)
HandshakeFailed
ServerError
DecimalError(String)
MalformedBinaryObject(String)
RecursionLimitExceeded
MalformedResponse(String)
TypeMismatch
BinaryTypeNotRegistered(i32)
No metadata is registered on the cluster for a type id encountered while decoding a compact-footer binary object — the schema’s field ids can’t be recovered without it.
SchemaNotFound
Metadata was found for the type, but none of its registered schemas
matches the schema_id stamped in the object’s header.
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
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 From<FromUtf8Error> for ProtocolError
impl From<FromUtf8Error> for ProtocolError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<ProtocolError> for IgniteError
impl From<ProtocolError> for IgniteError
Source§fn from(source: ProtocolError) -> Self
fn from(source: ProtocolError) -> Self
Converts to this type from the input type.
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