Struct tinychain::cluster::Cluster[][src]

pub struct Cluster { /* fields omitted */ }
Expand description

The data structure responsible for maintaining consensus per-transaction.

Implementations

Borrow one of this cluster’s Chains.

Borrow an InstanceClass, if there is one defined with the given name.

Borrow the public key of this cluster.

Return the canonical Link to this cluster (probably not on this host).

Return the path of this cluster, relative to this host.

Return the names of the members of this cluster.

Iterate over a list of replicas of this cluster.

Claim ownership of the given Txn.

Return Unauthorized if the request does not have the given scope from a trusted issuer.

Grant the given scope to the txn and use it to resolve the given OpRef.

Trust the Cluster at the given Link to issue the given auth Scopes.

Claim leadership of the given Txn.

Add a replica to this cluster.

Remove a replica from this cluster.

Trait Implementations

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

The Class type of this instance

Returns the [Class] of this instance.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Commit this transaction.

Delete any version data specific to this transaction.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Returns true if self can be cast into the target type T.

Should always be Self

Converts the given value to a String. Read more

Test if value can be cast into Self.

Returns Some(Self) if the source value can be cast into Self, otherwise None.

Returns Ok(Self) if the source value can be cast into Self, otherwise calls on_err.

Test if self can be cast into T.

Returns Some(T) if self can be cast into T, otherwise None.

Returns Ok(T) if self can be cast into T, otherwise calls on_err.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.