pub struct Counters {
pub next_request_id: u64,
pub next_txn_id: u64,
}Expand description
This device’s own crate::ids::RequestId/crate::ids::TxnId
minting sequences — see this module’s own doc, “Counters that must
never repeat across a restart”.
Fields§
§next_request_id: u64The next, never-yet-handed-out crate::ids::RequestId seed.
next_txn_id: u64The next, never-yet-handed-out crate::ids::TxnId seed. Not
minted from anywhere in this piece yet (see this module’s own doc)
— restored and persisted symmetrically with next_request_id so
M13b’s send pipeline needs no new persistence of its own.
Trait Implementations§
impl Copy for Counters
Source§impl<'de> Deserialize<'de> for Counters
impl<'de> Deserialize<'de> for Counters
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 Counters
impl StructuralPartialEq for Counters
Auto Trait Implementations§
impl Freeze for Counters
impl RefUnwindSafe for Counters
impl Send for Counters
impl Sync for Counters
impl Unpin for Counters
impl UnsafeUnpin for Counters
impl UnwindSafe for Counters
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