pub struct WriteToken {
pub origin_hash: u64,
pub seq: u64,
}Expand description
Address of a write — origin (which chain) + seq (which event on that chain). Round-trips through every binding as a typed value.
Treat tokens as opaque, in-process data. They are not
signed. The fields are pub so FFI / binding layers can
marshal them; application code should not synthesise tokens.
See module-level docs for the trust model — origin-bound
adapters reject mismatched tokens at wait_for_token.
Fields§
§origin_hash: u6464-bit hash of the entity whose chain this write landed on
(EntityKeypair::origin_hash).
seq: u64Per-chain monotonic sequence assigned by RedexFile::append.
Trait Implementations§
Source§impl Clone for WriteToken
impl Clone for WriteToken
Source§fn clone(&self) -> WriteToken
fn clone(&self) -> WriteToken
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 WriteToken
impl Debug for WriteToken
Source§impl Display for WriteToken
<origin_hex>:<seq> — chosen for grep-ability against the
causal:<hex>:<seq> reserved-prefix tag shape. Stable wire
form for log/CLI surfaces; bindings serialise the struct
directly instead.
impl Display for WriteToken
<origin_hex>:<seq> — chosen for grep-ability against the
causal:<hex>:<seq> reserved-prefix tag shape. Stable wire
form for log/CLI surfaces; bindings serialise the struct
directly instead.
Source§impl FromStr for WriteToken
impl FromStr for WriteToken
Source§impl Hash for WriteToken
impl Hash for WriteToken
Source§impl PartialEq for WriteToken
impl PartialEq for WriteToken
Source§fn eq(&self, other: &WriteToken) -> bool
fn eq(&self, other: &WriteToken) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for WriteToken
impl Eq for WriteToken
impl StructuralPartialEq for WriteToken
Auto Trait Implementations§
impl Freeze for WriteToken
impl RefUnwindSafe for WriteToken
impl Send for WriteToken
impl Sync for WriteToken
impl Unpin for WriteToken
impl UnsafeUnpin for WriteToken
impl UnwindSafe for WriteToken
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> CallHasher for T
impl<T> CallHasher for T
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.