pub struct ChainCommit { /* private fields */ }Expand description
Correlation handle returned by every admin commit. Phase 1 represents “the admin event was accepted by the loop’s event queue”; the substrate slice that adds a signed admin chain will widen this to carry the chain sequence + commit hash.
Always carries the issuing operator id so audit downstream (when wired) can correlate commits to the operator that issued them.
Implementations§
Source§impl ChainCommit
impl ChainCommit
Sourcepub fn commit_id(&self) -> u64
pub fn commit_id(&self) -> u64
Process-local correlation id, monotonically increasing
across every commit a single DeckClient produces.
Sourcepub fn operator_id(&self) -> u64
pub fn operator_id(&self) -> u64
Id of the operator that issued the commit.
Sourcepub fn event_kind(&self) -> &'static str
pub fn event_kind(&self) -> &'static str
Discriminator for the admin event the commit carried
(e.g. "enter_maintenance", "drop_replicas").
Sourcepub fn committed_at(&self) -> SystemTime
pub fn committed_at(&self) -> SystemTime
Wall-clock timestamp at which the SDK accepted the commit. Distinct from any per-chain commit sequence the substrate will eventually expose.
Trait Implementations§
Source§impl Clone for ChainCommit
impl Clone for ChainCommit
Source§fn clone(&self) -> ChainCommit
fn clone(&self) -> ChainCommit
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 moreAuto Trait Implementations§
impl Freeze for ChainCommit
impl RefUnwindSafe for ChainCommit
impl Send for ChainCommit
impl Sync for ChainCommit
impl Unpin for ChainCommit
impl UnsafeUnpin for ChainCommit
impl UnwindSafe for ChainCommit
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