pub struct AdmissionOperationV1 { /* private fields */ }Implementations§
Source§impl AdmissionOperationV1
impl AdmissionOperationV1
pub fn apply_terminal_projection( &self, projection: &AdmissionTerminalProjection, capabilities: &AdmissionProjectionCapabilities, ) -> Result<Self, AdmissionOperationError>
Source§impl AdmissionOperationV1
impl AdmissionOperationV1
pub fn prepare( binding: AdmissionOperationBindingV1, coordinator_lease_epoch: u64, ) -> Result<Self, AdmissionOperationError>
pub fn with_initial_channel_reservation_proposal_digest( self, proposal_digest: AdmissionDigest, ) -> Result<Self, AdmissionOperationError>
Sourcepub fn from_persisted(
persisted: PersistedAdmissionOperationV1,
) -> Result<Self, AdmissionOperationError>
pub fn from_persisted( persisted: PersistedAdmissionOperationV1, ) -> Result<Self, AdmissionOperationError>
Decode and validate a persisted operation value.
This checks the operation’s internal invariants but does not authenticate
its storage provenance. Authority-sensitive callers must obtain the value
from a fenced AdmissionOperationStore operation.
pub fn validate(&self) -> Result<(), AdmissionOperationError>
pub fn binding(&self) -> &AdmissionOperationBindingV1
pub fn state(&self) -> AdmissionOperationState
pub fn dispatch_state(&self) -> AdmissionDispatchState
pub fn dispatch_commit(&self) -> Option<&AdmissionDispatchCommitBindingV1>
pub fn coordinator_lease_epoch(&self) -> u64
pub fn version(&self) -> u64
pub fn terminal_replay(&self) -> Option<&AdmissionTerminalReplay>
pub fn tool_outcome_id(&self) -> Option<&AdmissionDigest>
pub fn threshold_proposal_hash(&self) -> Option<&AdmissionDigest>
pub fn threshold_proposal(&self) -> Option<&ThresholdApprovalProposal>
pub fn approval_set_hash(&self) -> Option<&AdmissionDigest>
pub fn budget_hold_id(&self) -> Option<&AdmissionIdentifier>
pub fn channel_reservation_proposal_digest(&self) -> Option<&AdmissionDigest>
pub fn channel_reservation_digest(&self) -> Option<&AdmissionDigest>
pub fn credit_exposure_reservation_digest(&self) -> Option<&AdmissionDigest>
pub fn replay_key(&self) -> AdmissionReplayKey
pub fn to_persisted(&self) -> PersistedAdmissionOperationV1
pub fn classify_replay(&self, candidate: &Self) -> AdmissionReplayClassification
pub fn apply_command( &self, command: &AdmissionOperationCommand, trusted_now_unix_ms: u64, ) -> Result<AdmissionCommandResult, AdmissionOperationError>
Trait Implementations§
Source§impl Clone for AdmissionOperationV1
impl Clone for AdmissionOperationV1
Source§fn clone(&self) -> AdmissionOperationV1
fn clone(&self) -> AdmissionOperationV1
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 AdmissionOperationV1
impl Debug for AdmissionOperationV1
impl Eq for AdmissionOperationV1
Source§impl From<&AdmissionOperationV1> for PersistedAdmissionOperationV1
impl From<&AdmissionOperationV1> for PersistedAdmissionOperationV1
Source§fn from(operation: &AdmissionOperationV1) -> Self
fn from(operation: &AdmissionOperationV1) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AdmissionOperationV1
impl PartialEq for AdmissionOperationV1
Source§impl Serialize for AdmissionOperationV1
impl Serialize for AdmissionOperationV1
impl StructuralPartialEq for AdmissionOperationV1
Auto Trait Implementations§
impl Freeze for AdmissionOperationV1
impl RefUnwindSafe for AdmissionOperationV1
impl Send for AdmissionOperationV1
impl Sync for AdmissionOperationV1
impl Unpin for AdmissionOperationV1
impl UnsafeUnpin for AdmissionOperationV1
impl UnwindSafe for AdmissionOperationV1
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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