pub struct SnapshotVersion {
pub major: u32,
pub minor: u32,
}Expand description
Schema version for runtime kernel snapshots.
Fields§
§major: u32Snapshot schema major version.
minor: u32Snapshot schema minor version.
Implementations§
Source§impl SnapshotVersion
impl SnapshotVersion
Sourcepub fn is_compatible_with(&self, other: &Self) -> bool
pub fn is_compatible_with(&self, other: &Self) -> bool
Check if other is compatible (same major, <= minor).
Trait Implementations§
Source§impl Clone for SnapshotVersion
impl Clone for SnapshotVersion
Source§fn clone(&self) -> SnapshotVersion
fn clone(&self) -> SnapshotVersion
Returns a duplicate 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 SnapshotVersion
impl Debug for SnapshotVersion
Source§impl<'de> Deserialize<'de> for SnapshotVersion
impl<'de> Deserialize<'de> for SnapshotVersion
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 Display for SnapshotVersion
impl Display for SnapshotVersion
Source§impl Hash for SnapshotVersion
impl Hash for SnapshotVersion
Source§impl Ord for SnapshotVersion
impl Ord for SnapshotVersion
Source§fn cmp(&self, other: &SnapshotVersion) -> Ordering
fn cmp(&self, other: &SnapshotVersion) -> Ordering
1.21.0 · 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 SnapshotVersion
impl PartialEq for SnapshotVersion
Source§impl PartialOrd for SnapshotVersion
impl PartialOrd for SnapshotVersion
Source§impl Serialize for SnapshotVersion
impl Serialize for SnapshotVersion
impl Copy for SnapshotVersion
impl Eq for SnapshotVersion
impl StructuralPartialEq for SnapshotVersion
Auto Trait Implementations§
impl Freeze for SnapshotVersion
impl RefUnwindSafe for SnapshotVersion
impl Send for SnapshotVersion
impl Sync for SnapshotVersion
impl Unpin for SnapshotVersion
impl UnsafeUnpin for SnapshotVersion
impl UnwindSafe for SnapshotVersion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).