pub enum ClientConnectionError {
Read {
part: String,
source: ConnectionError,
backtrace: Backtrace,
},
Write {
source: ConnectionError,
backtrace: Backtrace,
},
PayloadLengthTooLong {
payload_size: u32,
max_wirecommand_size: u32,
backtrace: Backtrace,
},
EncodeCommand {
source: CommandError,
backtrace: Backtrace,
},
DecodeCommand {
source: CommandError,
backtrace: Backtrace,
},
ConnectionIsSplit {},
WrongHelloVersion {
wire_version: i32,
oldest_compatible: i32,
wire_version_received: i32,
oldest_compatible_received: i32,
},
WrongReply {
reply: Replies,
},
}Expand description
This kind of error that can be produced during Pravega client connection.
Variants§
Read
Write
PayloadLengthTooLong
EncodeCommand
DecodeCommand
ConnectionIsSplit
WrongHelloVersion
Fields
WrongReply
Trait Implementations§
Source§impl Debug for ClientConnectionError
impl Debug for ClientConnectionError
Source§impl Display for ClientConnectionError
impl Display for ClientConnectionError
Source§impl Error for ClientConnectionError
impl Error for ClientConnectionError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for ClientConnectionError
impl ErrorCompat for ClientConnectionError
Auto Trait Implementations§
impl Freeze for ClientConnectionError
impl !RefUnwindSafe for ClientConnectionError
impl Send for ClientConnectionError
impl Sync for ClientConnectionError
impl Unpin for ClientConnectionError
impl !UnwindSafe for ClientConnectionError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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