pub struct IntentTable { /* private fields */ }Expand description
Fixed 32-slot intent table with per-writer live generations.
Implementations§
Source§impl IntentTable
impl IntentTable
Sourcepub fn stage_intent(
&mut self,
tx: TxId,
object: ExactObjectRef,
writer_id: u64,
authority_generation: Generation,
) -> Result<Generation, QdnfError>
pub fn stage_intent( &mut self, tx: TxId, object: ExactObjectRef, writer_id: u64, authority_generation: Generation, ) -> Result<Generation, QdnfError>
Stage durable submission intent BEFORE any external dispatch.
Sourcepub fn commit(
&mut self,
tx: TxId,
authority_generation: Generation,
) -> Result<(), QdnfError>
pub fn commit( &mut self, tx: TxId, authority_generation: Generation, ) -> Result<(), QdnfError>
Commits tx at authority_generation; error when stale/unknown.
Sourcepub fn abort(
&mut self,
tx: TxId,
authority_generation: Generation,
) -> Result<(), QdnfError>
pub fn abort( &mut self, tx: TxId, authority_generation: Generation, ) -> Result<(), QdnfError>
Aborts tx.
Pending intents for that writer cannot commit at the old generation.
Sourcepub fn encode_marker(
kind: MarkerKind,
tx: TxId,
digest: &StrongDigest,
out: &mut [u8],
) -> Result<usize, QdnfError>
pub fn encode_marker( kind: MarkerKind, tx: TxId, digest: &StrongDigest, out: &mut [u8], ) -> Result<usize, QdnfError>
Encode a fixed marker into a caller buffer. Never claims remote atomicity. Artifact kind / byte_len are encoded as Contract / 0 (not in this signature).
Sourcepub fn recover_into(
markers: &[u8],
out: &mut [IntentRecord; 32],
) -> Result<usize, QdnfError>
pub fn recover_into( markers: &[u8], out: &mut [IntentRecord; 32], ) -> Result<usize, QdnfError>
Recover concatenated markers. Torn trailing bytes are not applied.
Sourcepub fn local_pin_implies_remote_custody() -> bool
pub fn local_pin_implies_remote_custody() -> bool
Honest probe: false — a local pin does not imply remote custody.
Sourcepub fn local_commit_is_remote_atomic() -> bool
pub fn local_commit_is_remote_atomic() -> bool
Honest probe: false — local commit is not remote-atomic.
Auto Trait Implementations§
impl Freeze for IntentTable
impl RefUnwindSafe for IntentTable
impl Send for IntentTable
impl Sync for IntentTable
impl Unpin for IntentTable
impl UnsafeUnpin for IntentTable
impl UnwindSafe for IntentTable
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more