Skip to main content

BasicStage

Trait BasicStage 

Source
pub trait BasicStage<'path, 'document> {
    type Id: Copy;
    type Document: Copy;
    type Generation: Copy;
    type Signer: SignerReceipt<'path, 'document, Id = Self::Id, Document = Self::Document, Generation = Self::Generation>;
    type Counters: CounterReceipts<'path, 'document, Id = Self::Id, Document = Self::Document, Generation = Self::Generation>;

    // Required methods
    fn signer(&self) -> &Self::Signer;
    fn counters(&self) -> &Self::Counters;
    fn all_requirements_met(&self) -> bool;
}
Expand description

A format’s basic stage: the signer and countersignature receipts it was built from, and whether every requirement of the format’s basic level holds.

Required Associated Types§

Source

type Id: Copy

Original node identity.

Source

type Document: Copy

Stable document identity.

Source

type Generation: Copy

Exact document generation.

Source

type Signer: SignerReceipt<'path, 'document, Id = Self::Id, Document = Self::Document, Generation = Self::Generation>

The signing-certificate binding receipt.

Source

type Counters: CounterReceipts<'path, 'document, Id = Self::Id, Document = Self::Document, Generation = Self::Generation>

The complete countersignature census.

Required Methods§

Source

fn signer(&self) -> &Self::Signer

Same signer receipt the stage checked.

Source

fn counters(&self) -> &Self::Counters

Same countersignature census the stage checked.

Source

fn all_requirements_met(&self) -> bool

Every condition of the format’s basic level holds.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§