Skip to main content

ParticipantCredentials

Struct ParticipantCredentials 

Source
pub struct ParticipantCredentials<'path, 'document, E, N, D, G> { /* private fields */ }
Expand description

Complete current-role credentials of the root and all incorporated counters. No caller-provided success list determines which groups are visited. Other actor path/status/material and format-specific obligations remain separate.

Implementations§

Source§

impl<'path, 'document, E, N: Copy, D: Copy, G: Copy> ParticipantCredentials<'path, 'document, E, N, D, G>

Source

pub fn snapshot(&self) -> Snapshot<D, G>

Original root source and generation for the whole participant set.

Source

pub fn signature(&self) -> N

Original root signature, independent of every credential issuer.

Source

pub fn root(&self) -> Option<&Credentials<'path, 'document, E, N, D, G>>

All original root credentials, if a role property was present.

Source

pub fn counters(&self) -> &[CounterCredentials<'path, 'document, E, N, D, G>]

Every incorporated counter with a protected current role property. Other counters remain in the separate complete counter-signer census.

Trait Implementations§

Source§

impl<'path, 'document, E, N: Copy, D: Copy, G: Copy> CredentialReceipts<'path, 'document> for ParticipantCredentials<'path, 'document, E, N, D, G>

Source§

type Id = N

Original node identity.
Source§

type Document = D

Stable document identity.
Source§

type Generation = G

Exact document generation.
Source§

type Group = Credentials<'path, 'document, E, N, D, G>

One signature’s credentials.
Source§

fn snapshot(&self) -> Snapshot<D, G>

Original root source and generation for the whole participant set.
Source§

fn signature(&self) -> N

Original root signature, independent of every credential issuer.
Source§

fn root(&self) -> Option<&Self::Group>

The root’s credentials, if it has a credential property.
Source§

fn counters(&self) -> usize

Number of counters with credentials.
Source§

fn counter(&self, ordinal: usize) -> (N, &Self::Group)

The counter child signature and its credentials at this ordinal. Read more

Auto Trait Implementations§

§

impl<'path, 'document, E, N, D, G> !Freeze for ParticipantCredentials<'path, 'document, E, N, D, G>

§

impl<'path, 'document, E, N, D, G> !RefUnwindSafe for ParticipantCredentials<'path, 'document, E, N, D, G>

§

impl<'path, 'document, E, N, D, G> !Send for ParticipantCredentials<'path, 'document, E, N, D, G>

§

impl<'path, 'document, E, N, D, G> !Sync for ParticipantCredentials<'path, 'document, E, N, D, G>

§

impl<'path, 'document, E, N, D, G> !UnwindSafe for ParticipantCredentials<'path, 'document, E, N, D, G>

§

impl<'path, 'document, E, N, D, G> Forget for ParticipantCredentials<'path, 'document, E, N, D, G>

§

impl<'path, 'document, E, N, D, G> Unpin for ParticipantCredentials<'path, 'document, E, N, D, G>
where Snapshot<D, G>: Unpin, N: Unpin, Option<Credentials<'path, 'document, E, N, D, G>>: Unpin, OwnedVec<CounterCredentials<'path, 'document, E, N, D, G>>: Unpin,

§

impl<'path, 'document, E, N, D, G> UnsafeUnpin for ParticipantCredentials<'path, 'document, E, N, D, G>
where Snapshot<D, G>: UnsafeUnpin, N: UnsafeUnpin, Option<Credentials<'path, 'document, E, N, D, G>>: UnsafeUnpin, OwnedVec<CounterCredentials<'path, 'document, E, N, D, G>>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.