Struct amq_protocol::frame::ProtocolVersion
source · pub struct ProtocolVersion {
pub major: ShortShortUInt,
pub minor: ShortShortUInt,
pub revision: ShortShortUInt,
}
Expand description
Protocol version used
Fields§
§major: ShortShortUInt
Major version of the protocol
minor: ShortShortUInt
Minor version of the protocol
revision: ShortShortUInt
Revision of the protocol
Implementations§
source§impl ProtocolVersion
impl ProtocolVersion
sourcepub fn amqp_0_9_1() -> Self
pub fn amqp_0_9_1() -> Self
AMQP 0.9.1
Trait Implementations§
source§impl Clone for ProtocolVersion
impl Clone for ProtocolVersion
source§fn clone(&self) -> ProtocolVersion
fn clone(&self) -> ProtocolVersion
Returns a copy of the value. Read more
1.0.0 · 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 ProtocolVersion
impl Debug for ProtocolVersion
source§impl Display for ProtocolVersion
impl Display for ProtocolVersion
source§impl PartialEq for ProtocolVersion
impl PartialEq for ProtocolVersion
source§fn eq(&self, other: &ProtocolVersion) -> bool
fn eq(&self, other: &ProtocolVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ProtocolVersion
impl Eq for ProtocolVersion
impl StructuralPartialEq for ProtocolVersion
Auto Trait Implementations§
impl Freeze for ProtocolVersion
impl RefUnwindSafe for ProtocolVersion
impl Send for ProtocolVersion
impl Sync for ProtocolVersion
impl Unpin for ProtocolVersion
impl UnwindSafe for ProtocolVersion
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