pub struct VersionNegotiationPacket {
pub destination_connection_id: ConnectionId,
pub source_connection_id: ConnectionId,
pub supported_version: Vec<Version>,
}Expand description
Fields§
§destination_connection_id: ConnectionIdThe destination connection id.
source_connection_id: ConnectionIdThe source connection id.
supported_version: Vec<Version>Supported protocol versions.
Implementations§
Source§impl VersionNegotiationPacket
impl VersionNegotiationPacket
Sourcepub const HEADER_FORM: HeaderForm = HeaderForm::LongHeader
pub const HEADER_FORM: HeaderForm = HeaderForm::LongHeader
A HeaderForm.
Trait Implementations§
Source§impl Clone for VersionNegotiationPacket
impl Clone for VersionNegotiationPacket
Source§fn clone(&self) -> VersionNegotiationPacket
fn clone(&self) -> VersionNegotiationPacket
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 Codec for VersionNegotiationPacket
impl Codec for VersionNegotiationPacket
Source§impl Debug for VersionNegotiationPacket
impl Debug for VersionNegotiationPacket
impl Eq for VersionNegotiationPacket
Source§impl Hash for VersionNegotiationPacket
impl Hash for VersionNegotiationPacket
Source§impl Ord for VersionNegotiationPacket
impl Ord for VersionNegotiationPacket
Source§fn cmp(&self, other: &VersionNegotiationPacket) -> Ordering
fn cmp(&self, other: &VersionNegotiationPacket) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VersionNegotiationPacket
impl PartialEq for VersionNegotiationPacket
Source§impl PartialOrd for VersionNegotiationPacket
impl PartialOrd for VersionNegotiationPacket
impl StructuralPartialEq for VersionNegotiationPacket
Auto Trait Implementations§
impl Freeze for VersionNegotiationPacket
impl RefUnwindSafe for VersionNegotiationPacket
impl Send for VersionNegotiationPacket
impl Sync for VersionNegotiationPacket
impl Unpin for VersionNegotiationPacket
impl UnsafeUnpin for VersionNegotiationPacket
impl UnwindSafe for VersionNegotiationPacket
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