pub trait ClientApiError: From<BadResponseError> + Error {
// Required methods
fn bad_response(&self) -> Option<&BadResponseError>;
fn bad_response_mut(&mut self) -> Option<&mut BadResponseError>;
}Required Methods§
Sourcefn bad_response(&self) -> Option<&BadResponseError>
fn bad_response(&self) -> Option<&BadResponseError>
If current error is a bad response error return a reference to it
Sourcefn bad_response_mut(&mut self) -> Option<&mut BadResponseError>
fn bad_response_mut(&mut self) -> Option<&mut BadResponseError>
If current error is a bad response error return a mut reference to it
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl ClientApiError for simploxide_client::ffi::ClientError
Available on crate feature
ffi only.impl ClientApiError for simploxide_client::ws::ClientError
Available on crate feature
websocket only.