Struct scabbard::service::ScabbardFactory[][src]

pub struct ScabbardFactory { /* fields omitted */ }

Implementations

Trait Implementations

args must include the following:

  • admin_keys: list of public keys that are allowed to create and modify sabre contracts, formatted as a serialized JSON array of strings
  • peer_services: list of other scabbard services on the same circuit that this service will share state with

args may include the following optional entries:

  • coordinator_timeout: the length of time (in milliseconds) that the network has to commit a proposal before the coordinator rejects it (if not provided, default is 30 seconds)
  • version: the protocol version for scabbard (possible values: “1”, “2”) (default: “1”)

Return the available service types that this factory can create.

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

Performs the conversion.

Performs the conversion.

Given ptr, which was obtained from a prior call to Self::borrow(), return a value with the same nominal lifetime which is guaranteed to survive mutations to Self. Read more

Should always be Self

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.