pub struct CofMigrationPlan { /* private fields */ }Expand description
Planned handling for an observed COF version.
Implementations§
Source§impl CofMigrationPlan
impl CofMigrationPlan
Sourcepub fn source_version(self) -> u8
pub fn source_version(self) -> u8
Version byte found in the encoded object.
Sourcepub fn target_version(self) -> u8
pub fn target_version(self) -> u8
Version byte this crate writes by default.
Sourcepub fn support(self) -> CofVersionSupport
pub fn support(self) -> CofVersionSupport
Compatibility class for the source version.
Sourcepub fn can_write_source_version(self) -> bool
pub fn can_write_source_version(self) -> bool
Return true when writing this source version is supported.
Sourcepub fn requires_migration(self) -> bool
pub fn requires_migration(self) -> bool
Return true when decoding requires an explicit migration step.
Trait Implementations§
Source§impl Clone for CofMigrationPlan
impl Clone for CofMigrationPlan
Source§fn clone(&self) -> CofMigrationPlan
fn clone(&self) -> CofMigrationPlan
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 Debug for CofMigrationPlan
impl Debug for CofMigrationPlan
Source§impl PartialEq for CofMigrationPlan
impl PartialEq for CofMigrationPlan
Source§fn eq(&self, other: &CofMigrationPlan) -> bool
fn eq(&self, other: &CofMigrationPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CofMigrationPlan
impl Eq for CofMigrationPlan
impl StructuralPartialEq for CofMigrationPlan
Auto Trait Implementations§
impl Freeze for CofMigrationPlan
impl RefUnwindSafe for CofMigrationPlan
impl Send for CofMigrationPlan
impl Sync for CofMigrationPlan
impl Unpin for CofMigrationPlan
impl UnsafeUnpin for CofMigrationPlan
impl UnwindSafe for CofMigrationPlan
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