Skip to main content

State

pub trait State: Sized {
Show 20 associated items type MembershipCoordinator; type Network; type Initializer; type UpgradeLock; type PublicKey; type PrivateKey; type StatePrivateKey; type StakeTableCapacity; type TimeoutDuration; type EmptyBlockDelay; type BlockSizes; type Storage; type Metrics; type ConsensusMetrics; type LockedQc; type BoundaryQc; type AnchorCert2; type UpgradeConfig; type LeaderTracer; type ExternalTx;
}
Expand description

Builder’s type state specifies if members are set or not (unset).

You can use the associated types of this trait to control the state of individual members with the IsSet and IsUnset traits. You can change the state of the members with the Set* structs available in this module.

Required Associated Types§

Source

type MembershipCoordinator

Type state of the member membership_coordinator.

It can implement either IsSet or IsUnset

Source

type Network

Type state of the member network.

It can implement either IsSet or IsUnset

Source

type Initializer

Type state of the member initializer.

It can implement either IsSet or IsUnset

Source

type UpgradeLock

Type state of the member upgrade_lock.

It can implement either IsSet or IsUnset

Source

type PublicKey

Type state of the member public_key.

It can implement either IsSet or IsUnset

Source

type PrivateKey

Type state of the member private_key.

It can implement either IsSet or IsUnset

Source

type StatePrivateKey

Type state of the member state_private_key.

It can implement either IsSet or IsUnset

Source

type StakeTableCapacity

Type state of the member stake_table_capacity.

It can implement either IsSet or IsUnset

Source

type TimeoutDuration

Type state of the member timeout_duration.

It can implement either IsSet or IsUnset

Source

type EmptyBlockDelay

Type state of the member empty_block_delay.

It can implement either IsSet or IsUnset

Source

type BlockSizes

Type state of the member block_sizes.

It can implement either IsSet or IsUnset

Source

type Storage

Type state of the member storage.

It can implement either IsSet or IsUnset

Source

type Metrics

Type state of the member metrics.

It can implement either IsSet or IsUnset

Source

type ConsensusMetrics

Type state of the member consensus_metrics.

It can implement either IsSet or IsUnset

Source

type LockedQc

Type state of the member locked_qc.

It can implement either IsSet or IsUnset

Source

type BoundaryQc

Type state of the member boundary_qc.

It can implement either IsSet or IsUnset

Source

type AnchorCert2

Type state of the member anchor_cert2.

It can implement either IsSet or IsUnset

Source

type UpgradeConfig

Type state of the member upgrade_config.

It can implement either IsSet or IsUnset

Source

type LeaderTracer

Type state of the member leader_tracer.

It can implement either IsSet or IsUnset

Source

type ExternalTx

Type state of the member external_tx.

It can implement either IsSet or IsUnset

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§