Struct scabbard::service::Scabbard[][src]

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

A service for running Sawtooth Sabre smart contracts with two-phase commit consensus.

Implementations

Generate a new Scabbard service.

Fetch the value at the given address in the scabbard service’s state. Returns None if the address is not set.

Fetch a list of entries in the scabbard service’s state. If a prefix is provided, only return entries whose addresses are under the given address prefix. If no prefix is provided, return all state entries.

Get the current state root hash of the scabbard service’s state.

Get the BatchInfo for each specified batch.

Arguments

  • ids: List of batch IDs to get info on
  • wait: If Some, wait up to the given time for all requested batches to complete (statuses will be either Committed or Invalid); if the timeout expires, an Err result will be given by the returned iterator. If None, return the BatchInfos to complete.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

This service’s ID Read more

This service’s type Read more

Starts the service Read more

Stops Starts the service Read more

Clean-up any resources before the service is removed. Consumes the service (which, given the use of dyn traits, this must take a boxed Service instance). Read more

Purge any persistent state maintained by this service.

Handle any incoming message intended for this service instance. Read more

Cast the service as &dyn Any. Read more

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

Clone this value, and then immediately put it into a Box behind a trait object of this trait. Read more

Returns the address of self. Read more

Performs the conversion.

Performs the conversion.

Clone this value, and then immediately put it into a Box behind a trait object of this trait. Read more

Returns the address of self. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.