pub struct PendingIntentPlan {
pub operation_ids: Vec<OperationId>,
pub immutable_sent: BTreeSet<OperationId>,
pub digest: [u8; 32],
}Expand description
Payload-free commitment to pending intent preserved across activation.
Fields§
§operation_ids: Vec<OperationId>§immutable_sent: BTreeSet<OperationId>§digest: [u8; 32]Implementations§
Source§impl PendingIntentPlan
impl PendingIntentPlan
Sourcepub fn build(
operation_ids: Vec<OperationId>,
immutable_sent: BTreeSet<OperationId>,
) -> Result<Self, BootstrapError>
pub fn build( operation_ids: Vec<OperationId>, immutable_sent: BTreeSet<OperationId>, ) -> Result<Self, BootstrapError>
Sorts identities, rejects duplicate declarations, and calculates a restart-stable digest.
§Errors
Returns an error when a sent identity is absent or an identity is duplicated.
Trait Implementations§
Source§impl Clone for PendingIntentPlan
impl Clone for PendingIntentPlan
Source§fn clone(&self) -> PendingIntentPlan
fn clone(&self) -> PendingIntentPlan
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 PendingIntentPlan
impl Debug for PendingIntentPlan
Source§impl<'de> Deserialize<'de> for PendingIntentPlan
impl<'de> Deserialize<'de> for PendingIntentPlan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PendingIntentPlan
Source§impl PartialEq for PendingIntentPlan
impl PartialEq for PendingIntentPlan
Source§impl Serialize for PendingIntentPlan
impl Serialize for PendingIntentPlan
impl StructuralPartialEq for PendingIntentPlan
Auto Trait Implementations§
impl Freeze for PendingIntentPlan
impl RefUnwindSafe for PendingIntentPlan
impl Send for PendingIntentPlan
impl Sync for PendingIntentPlan
impl Unpin for PendingIntentPlan
impl UnsafeUnpin for PendingIntentPlan
impl UnwindSafe for PendingIntentPlan
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