pub struct WriterBlock {
pub writer_id: String,
pub acquired_at_ms: u64,
}Expand description
Who most recently acquired the writer epoch, and when.
Observability only, written during the epoch-acquisition CAS. Fencing
authority is writer_epoch + CAS; nothing may consult this block for
commit validity, takeover permission, or expiry, and no wall-clock
comparison may gate a publish.
There is no session identity here: two runs of the same writer are told
apart by acquired_at_ms, not by an id.
Fields§
§writer_id: StringStable writer label supplied by the embedding process for diagnostics.
acquired_at_ms: u64Unix-millisecond stamp of the successful epoch-acquisition CAS.
Trait Implementations§
Source§impl Clone for WriterBlock
impl Clone for WriterBlock
Source§fn clone(&self) -> WriterBlock
fn clone(&self) -> WriterBlock
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 WriterBlock
impl Debug for WriterBlock
Source§impl<'de> Deserialize<'de> for WriterBlock
impl<'de> Deserialize<'de> for WriterBlock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WriterBlock
Source§impl PartialEq for WriterBlock
impl PartialEq for WriterBlock
Source§impl Serialize for WriterBlock
impl Serialize for WriterBlock
impl StructuralPartialEq for WriterBlock
Auto Trait Implementations§
impl Freeze for WriterBlock
impl RefUnwindSafe for WriterBlock
impl Send for WriterBlock
impl Sync for WriterBlock
impl Unpin for WriterBlock
impl UnsafeUnpin for WriterBlock
impl UnwindSafe for WriterBlock
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