Enum pravega_wire_protocol::error::ClientConnectionError [−][src]
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
Show fields
Fields of Read
Show fields
Fields of Write
source: ConnectionError
backtrace: Backtrace
Show fields
Show fields
Fields of EncodeCommand
source: CommandError
backtrace: Backtrace
Show fields
Fields of DecodeCommand
source: CommandError
backtrace: Backtrace
Show fields
Fields of ConnectionIsSplit
Show fields
Show fields
Fields of WrongReply
reply: Replies
Trait Implementations
impl Debug for ClientConnectionError
[src]
impl Debug for ClientConnectionError
[src]impl Display for ClientConnectionError
[src]
impl Display for ClientConnectionError
[src]impl Error for ClientConnectionError where
Self: Debug + Display,
[src]
impl Error for ClientConnectionError where
Self: Debug + Display,
[src]fn description(&self) -> &str
[src]
fn description(&self) -> &str
[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
fn cause(&self) -> Option<&dyn Error>
[src]
fn cause(&self) -> Option<&dyn Error>
[src]👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
impl ErrorCompat for ClientConnectionError
[src]
impl ErrorCompat for ClientConnectionError
[src]Auto Trait Implementations
impl !RefUnwindSafe for ClientConnectionError
impl Send for ClientConnectionError
impl Sync for ClientConnectionError
impl Unpin for ClientConnectionError
impl !UnwindSafe for ClientConnectionError
Blanket Implementations
impl<T> AsErrorSource for T where
T: 'static + Error,
[src]
impl<T> AsErrorSource for T where
T: 'static + Error,
[src]pub fn as_error_source(&self) -> &(dyn Error + 'static)
[src]
pub fn as_error_source(&self) -> &(dyn Error + 'static)
[src]For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method receivers. Read more
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self