pub enum Change {
Appended(usize),
Expired(usize),
Cut,
}Expand description
How a writer changed the log (wrote).
Variants§
Appended(usize)
It appended this many bytes.
Expired(usize)
It rewrote the log as this many bytes, and every line it removed was past the TTL (expired)
or had no stamp, as bound drops them whatever else the log holds: nothing a reader of the
log’s talk uses.
Cut
It rewrote the log and removed a line a reader may still use (a cut by MEMBER_BYTES).
Implementations§
Trait Implementations§
impl Copy for Change
impl Eq for Change
impl StructuralPartialEq for Change
Auto Trait Implementations§
impl Freeze for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnsafeUnpin for Change
impl UnwindSafe for Change
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.