pub enum BlockCmpResult {
Match,
Mismatch {
local_crc: u32,
plc_crc: u32,
},
OnlyLocal,
OnlyPlc,
}Expand description
Compare two block lists: local files vs PLC blocks.
Each entry is (block_type, block_number) in local; the closure
plc_crc is called for each to retrieve the PLC-side CRC.
Variants§
Match
Identical CRC — block matches.
Mismatch
CRC differs — block has been modified on the PLC.
OnlyLocal
Block exists locally but not on the PLC.
OnlyPlc
Block exists on the PLC but not locally.
Trait Implementations§
Source§impl Clone for BlockCmpResult
impl Clone for BlockCmpResult
Source§fn clone(&self) -> BlockCmpResult
fn clone(&self) -> BlockCmpResult
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 BlockCmpResult
impl Debug for BlockCmpResult
Source§impl PartialEq for BlockCmpResult
impl PartialEq for BlockCmpResult
Source§fn eq(&self, other: &BlockCmpResult) -> bool
fn eq(&self, other: &BlockCmpResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BlockCmpResult
impl StructuralPartialEq for BlockCmpResult
Auto Trait Implementations§
impl Freeze for BlockCmpResult
impl RefUnwindSafe for BlockCmpResult
impl Send for BlockCmpResult
impl Sync for BlockCmpResult
impl Unpin for BlockCmpResult
impl UnsafeUnpin for BlockCmpResult
impl UnwindSafe for BlockCmpResult
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