pub struct GovernedEvidenceSession<'slot, 'bytes> { /* private fields */ }Implementations§
Source§impl<'slot, 'bytes> GovernedEvidenceSession<'slot, 'bytes>
impl<'slot, 'bytes> GovernedEvidenceSession<'slot, 'bytes>
pub fn identity(&self) -> SessionIdentity
pub fn is_terminal(&self) -> bool
pub fn cancel(&mut self)
pub fn prepare_token( &mut self, proposal: Proposal<'_>, ) -> Result<PendingEvidence, PolicyError>
Sourcepub fn prepare_artifact(
&mut self,
proposal: Proposal<'_>,
parent: Option<ParentEventBinding>,
) -> Result<PendingEvidence, PolicyError>
pub fn prepare_artifact( &mut self, proposal: Proposal<'_>, parent: Option<ParentEventBinding>, ) -> Result<PendingEvidence, PolicyError>
Parent is a bound declaration, not proof of a previously accepted event. The runtime adapter must derive lineage from an actual accepted record.
Sourcepub fn accept<'drain>(
&'drain mut self,
pending: PendingEvidence,
) -> Result<AcceptedEvidence<'drain, 'bytes>, PolicyError>
pub fn accept<'drain>( &'drain mut self, pending: PendingEvidence, ) -> Result<AcceptedEvidence<'drain, 'bytes>, PolicyError>
Commit/enqueue is the linearization point under owner -> policy -> slot. The returned view is drained AFTER all authority locks have been released.
Trait Implementations§
Source§impl Drop for GovernedEvidenceSession<'_, '_>
impl Drop for GovernedEvidenceSession<'_, '_>
Auto Trait Implementations§
impl<'slot, 'bytes> Freeze for GovernedEvidenceSession<'slot, 'bytes>
impl<'slot, 'bytes> RefUnwindSafe for GovernedEvidenceSession<'slot, 'bytes>
impl<'slot, 'bytes> Send for GovernedEvidenceSession<'slot, 'bytes>
impl<'slot, 'bytes> Sync for GovernedEvidenceSession<'slot, 'bytes>
impl<'slot, 'bytes> Unpin for GovernedEvidenceSession<'slot, 'bytes>
impl<'slot, 'bytes> UnsafeUnpin for GovernedEvidenceSession<'slot, 'bytes>
impl<'slot, 'bytes> UnwindSafe for GovernedEvidenceSession<'slot, 'bytes>
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