pub struct HandshakeResponse {
pub message_id: Id,
pub selected_protocol_version: ProtocolVersion,
}Expand description
The CEM’s answer to a Handshake: the version it selected for this session.
Fields§
§message_id: IdThis message’s identifier.
selected_protocol_version: ProtocolVersionThe version the CEM chose, which must be one the RM offered.
Implementations§
Source§impl HandshakeResponse
impl HandshakeResponse
Sourcepub fn builder() -> HandshakeResponseBuilder
pub fn builder() -> HandshakeResponseBuilder
Create an instance of HandshakeResponse using the builder syntax
Trait Implementations§
Source§impl Clone for HandshakeResponse
impl Clone for HandshakeResponse
Source§fn clone(&self) -> HandshakeResponse
fn clone(&self) -> HandshakeResponse
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 HandshakeResponse
impl Debug for HandshakeResponse
Source§impl<'de> Deserialize<'de> for HandshakeResponse
impl<'de> Deserialize<'de> for HandshakeResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<HandshakeResponse> for Message
impl From<HandshakeResponse> for Message
Source§fn from(value: HandshakeResponse) -> Self
fn from(value: HandshakeResponse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HandshakeResponse
impl PartialEq for HandshakeResponse
Source§impl Serialize for HandshakeResponse
impl Serialize for HandshakeResponse
impl StructuralPartialEq for HandshakeResponse
Auto Trait Implementations§
impl Freeze for HandshakeResponse
impl RefUnwindSafe for HandshakeResponse
impl Send for HandshakeResponse
impl Sync for HandshakeResponse
impl Unpin for HandshakeResponse
impl UnsafeUnpin for HandshakeResponse
impl UnwindSafe for HandshakeResponse
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