pub struct OpTable { /* private fields */ }Implementations§
Source§impl OpTable
impl OpTable
Sourcepub fn submit(
&mut self,
desc: OperationDesc,
intents: &mut IntentTable,
writer_id: u64,
gen: Generation,
) -> Result<StrongDigest, QdnfError>
pub fn submit( &mut self, desc: OperationDesc, intents: &mut IntentTable, writer_id: u64, gen: Generation, ) -> Result<StrongDigest, QdnfError>
Submits an operation for replication.
Sourcepub fn commit(
&mut self,
id: StrongDigest,
intents: &mut IntentTable,
tx: TxId,
gen: Generation,
) -> Result<(), QdnfError>
pub fn commit( &mut self, id: StrongDigest, intents: &mut IntentTable, tx: TxId, gen: Generation, ) -> Result<(), QdnfError>
Commits an operation durably.
Sourcepub fn get_committed(
&self,
id: &StrongDigest,
) -> Result<OperationDesc, QdnfError>
pub fn get_committed( &self, id: &StrongDigest, ) -> Result<OperationDesc, QdnfError>
Fetches the committed op for id.
Auto Trait Implementations§
impl Freeze for OpTable
impl RefUnwindSafe for OpTable
impl Send for OpTable
impl Sync for OpTable
impl Unpin for OpTable
impl UnsafeUnpin for OpTable
impl UnwindSafe for OpTable
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