pub struct WitnessEvent {
pub event_type: u8,
pub cluster_id: u32,
pub parent_cluster_hash: [u8; 32],
pub new_cluster_hash: [u8; 32],
}Expand description
Witness event emitted when a COW slab copy or delta occurs.
Fields§
§event_type: u8Event type: 0x0E = CLUSTER_COW, 0x0F = CLUSTER_DELTA.
cluster_id: u32ID of the cluster affected.
parent_cluster_hash: [u8; 32]SHAKE-256-256 hash of the parent cluster data before copy.
new_cluster_hash: [u8; 32]SHAKE-256-256 hash of the new local cluster data after copy.
Auto Trait Implementations§
impl Freeze for WitnessEvent
impl RefUnwindSafe for WitnessEvent
impl Send for WitnessEvent
impl Sync for WitnessEvent
impl Unpin for WitnessEvent
impl UnwindSafe for WitnessEvent
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