pub struct UnsupportedProtocolVersion {
pub supported: Vec<String>,
pub requested: Option<String>,
}Expand description
The payload of an UNSUPPORTED_PROTOCOL_VERSION_CODE error’s data — the
modern era’s whole version-negotiation signal, since there is no handshake in
which to agree a version up front.
Fields§
§supported: Vec<String>The versions the server supports.
requested: Option<String>The version the client requested (echoed back).
Trait Implementations§
Source§impl Clone for UnsupportedProtocolVersion
impl Clone for UnsupportedProtocolVersion
Source§fn clone(&self) -> UnsupportedProtocolVersion
fn clone(&self) -> UnsupportedProtocolVersion
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 UnsupportedProtocolVersion
impl Debug for UnsupportedProtocolVersion
Source§impl Default for UnsupportedProtocolVersion
impl Default for UnsupportedProtocolVersion
Source§fn default() -> UnsupportedProtocolVersion
fn default() -> UnsupportedProtocolVersion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UnsupportedProtocolVersion
impl<'de> Deserialize<'de> for UnsupportedProtocolVersion
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UnsupportedProtocolVersion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UnsupportedProtocolVersion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UnsupportedProtocolVersion
impl RefUnwindSafe for UnsupportedProtocolVersion
impl Send for UnsupportedProtocolVersion
impl Sync for UnsupportedProtocolVersion
impl Unpin for UnsupportedProtocolVersion
impl UnsafeUnpin for UnsupportedProtocolVersion
impl UnwindSafe for UnsupportedProtocolVersion
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