pub struct ProtocolFailure {
pub status: u16,
pub reason: String,
pub message: String,
pub supported_version: Option<String>,
pub requested_version: Option<String>,
pub body: Value,
}Expand description
A stable failure returned when a server rejects an SDK protocol version.
Fields§
§status: u16§reason: String§message: String§supported_version: Option<String>§requested_version: Option<String>§body: ValueTrait Implementations§
Source§impl Clone for ProtocolFailure
impl Clone for ProtocolFailure
Source§fn clone(&self) -> ProtocolFailure
fn clone(&self) -> ProtocolFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProtocolFailure
impl Debug for ProtocolFailure
Source§impl Display for ProtocolFailure
impl Display for ProtocolFailure
Source§impl Error for ProtocolFailure
impl Error for ProtocolFailure
1.30.0 · 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 Freeze for ProtocolFailure
impl RefUnwindSafe for ProtocolFailure
impl Send for ProtocolFailure
impl Sync for ProtocolFailure
impl Unpin for ProtocolFailure
impl UnsafeUnpin for ProtocolFailure
impl UnwindSafe for ProtocolFailure
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