pub struct ProtocolVersion {
pub major: u8,
pub minor: u8,
}Expand description
An RTPS protocol version (DDSI-RTPS 2.5, 9.4.2.4).
Fields§
§major: u8Major version.
minor: u8Minor version.
Implementations§
Source§impl ProtocolVersion
impl ProtocolVersion
Sourcepub const V1_0: ProtocolVersion
pub const V1_0: ProtocolVersion
1.0
Sourcepub const V1_1: ProtocolVersion
pub const V1_1: ProtocolVersion
1.1
Sourcepub const V2_0: ProtocolVersion
pub const V2_0: ProtocolVersion
2.0
Sourcepub const V2_1: ProtocolVersion
pub const V2_1: ProtocolVersion
2.1
Sourcepub const V2_2: ProtocolVersion
pub const V2_2: ProtocolVersion
2.2
Sourcepub const V2_3: ProtocolVersion
pub const V2_3: ProtocolVersion
2.3
Sourcepub const V2_4: ProtocolVersion
pub const V2_4: ProtocolVersion
2.4
Sourcepub const V2_5: ProtocolVersion
pub const V2_5: ProtocolVersion
2.5
Sourcepub const CURRENT: ProtocolVersion = ProtocolVersion::V2_5
pub const CURRENT: ProtocolVersion = ProtocolVersion::V2_5
PROTOCOLVERSION: the version this crate implements, 2.5.
Trait Implementations§
Source§impl Clone for ProtocolVersion
impl Clone for ProtocolVersion
impl Copy for ProtocolVersion
Source§impl Debug for ProtocolVersion
impl Debug for ProtocolVersion
Source§impl Default for ProtocolVersion
impl Default for ProtocolVersion
impl Eq for ProtocolVersion
Source§impl Hash for ProtocolVersion
impl Hash for ProtocolVersion
Source§impl Ord for ProtocolVersion
impl Ord for ProtocolVersion
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ProtocolVersion
impl PartialEq for ProtocolVersion
Source§impl PartialOrd for ProtocolVersion
impl PartialOrd for ProtocolVersion
impl StructuralPartialEq for ProtocolVersion
Auto Trait Implementations§
impl Forget for ProtocolVersion
impl Freeze for ProtocolVersion
impl Move for ProtocolVersion
impl RefUnwindSafe for ProtocolVersion
impl Send for ProtocolVersion
impl Sync for ProtocolVersion
impl Unpin for ProtocolVersion
impl UnsafeUnpin 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