pub enum ClientError {
Transport {
command: String,
source: Box<Error>,
},
Cluster {
command: String,
code: i64,
message: String,
raw: String,
},
Http {
command: String,
status: u16,
body: String,
},
Decode {
command: String,
reason: String,
},
Io {
path: String,
source: Error,
},
OperationFailed {
id: String,
state: String,
error: Option<String>,
},
Config(String),
}Expand description
Something went wrong talking to the cluster.
Variants§
Transport
The request could not be made, or the connection failed.
Fields
Cluster
The cluster reported an error.
YTsaurus returns a structured error in the X-YT-Error header; the
message and code are lifted out of it so the common case reads well,
and the whole thing is kept in raw because the nested inner_errors
are often where the real cause is.
Fields
Http
The cluster answered with an unexpected HTTP status and no usable error.
Fields
Decode
A response could not be decoded.
Fields
Io
Reading a local file failed.
OperationFailed
An operation finished in a state other than completed.
Fields
Config(String)
The environment did not describe a cluster to talk to.
Trait Implementations§
Source§impl Debug for ClientError
impl Debug for ClientError
Source§impl Display for ClientError
impl Display for ClientError
Source§impl Error for ClientError
impl Error for ClientError
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 !RefUnwindSafe for ClientError
impl !UnwindSafe for ClientError
impl Freeze for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl UnsafeUnpin for ClientError
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