pub struct CommitEvent {
pub stream: String,
pub writer: String,
pub seq: u64,
pub content_hash: [u8; 32],
}Expand description
What a commit announces: where it landed and its content hash. Just enough for a peer to fetch the entry — never the payload itself.
Fields§
§stream: String§writer: String§seq: u64§content_hash: [u8; 32]Trait Implementations§
Source§impl Clone for CommitEvent
impl Clone for CommitEvent
Source§fn clone(&self) -> CommitEvent
fn clone(&self) -> CommitEvent
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 CommitEvent
impl Debug for CommitEvent
impl Eq for CommitEvent
Source§impl PartialEq for CommitEvent
impl PartialEq for CommitEvent
Source§fn eq(&self, other: &CommitEvent) -> bool
fn eq(&self, other: &CommitEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommitEvent
Auto Trait Implementations§
impl Freeze for CommitEvent
impl RefUnwindSafe for CommitEvent
impl Send for CommitEvent
impl Sync for CommitEvent
impl Unpin for CommitEvent
impl UnsafeUnpin for CommitEvent
impl UnwindSafe for CommitEvent
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