pub struct Version {
pub major: u8,
pub minor: u8,
}Expand description
GIOP-Version (octet major; octet minor).
Fields§
§major: u8Major-Version (typisch 1).
minor: u8Minor-Version (0, 1, 2).
Implementations§
Source§impl Version
impl Version
Sourcepub const fn supports_fragments(self) -> bool
pub const fn supports_fragments(self) -> bool
true wenn die Version Fragment-Messages unterstuetzt
(Spec §15.4.9: ab GIOP 1.1; in 1.1 nur Request+Reply, in 1.2
alle Messages).
Sourcepub const fn supports_universal_fragments(self) -> bool
pub const fn supports_universal_fragments(self) -> bool
true wenn Fragment-Messages fuer alle Message-Types
erlaubt sind (Spec §15.4.9: ab GIOP 1.2).
Sourcepub const fn uses_flags_octet(self) -> bool
pub const fn uses_flags_octet(self) -> bool
true wenn das flags-Octet (statt byte_order) im Header
steht (Spec §15.4.1: ab GIOP 1.1).
Sourcepub const fn uses_v1_2_request_layout(self) -> bool
pub const fn uses_v1_2_request_layout(self) -> bool
true wenn der Request/Reply-Header das GIOP-1.2-Layout
nutzt (request_id zuerst, service_context zuletzt,
TargetAddress statt object_key).
Sourcepub const fn supports_bidirectional(self) -> bool
pub const fn supports_bidirectional(self) -> bool
true wenn Bidirectional-GIOP unterstuetzt ist (Spec §15.9:
ab GIOP 1.2 mit BiDirIIOPServiceContext).
Sourcepub const fn is_at_least(self, major: u8, minor: u8) -> bool
pub const fn is_at_least(self, major: u8, minor: u8) -> bool
const-fn-faehiger Versions-Vergleich.
Trait Implementations§
Source§impl Ord for Version
impl Ord for Version
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 PartialOrd for Version
impl PartialOrd for Version
impl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnsafeUnpin for Version
impl UnwindSafe for Version
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