pub struct Service { /* fields omitted */ }Privacy-preserving cryptocurrency service.
See crate documentation for more details.
Creates a service with an attached debugger.
The service created in this way has high associated performance penalty. Use for
debugging only; otherwise, use Service::default().
Returns the "default value" for a type. Read more
Formats the value using the given formatter. Read more
Service identifier for database schema and service messages. This ID must be unique within the blockchain. Read more
A comprehensive string service name. This name must be unique within the blockchain. Read more
Returns a list of root hashes of tables that determine the current state of the service database. These hashes are collected from all the services in a common ProofMapIndex accessible in the core schema as [state_hash_aggregator][1]. Read more
Tries to create a Transaction from the given raw message. Read more
A service execution. This method is invoked for each service after execution of all transactions in the block but before after_commit handler. Read more
Handles block commit. This handler is invoked for each service after commit of the block. For example, a service can create one or more transactions if a specific condition has occurred. Read more
Extends API by handlers of this service. The request handlers are mounted on the /api/services/{service_name} path at the listen address of every full node in the blockchain network. Read more
Invoked for all deployed services during the blockchain initialization on genesis block creation each time a node is started. During the handling of the method the service is able to perform the following activities: - store its own initial state to the storage [&mut Fork] - return an initial [global configuration][doc:global_cfg] of the service in the JSON format, if service has global configuration parameters. This configuration is used to create a genesis block. Read more
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
Mutably borrows from an owned value. Read more
impl<T> Clear for T where T: InitializableFromZeroed + ?Sized, | |
Completely overwrites this value.
impl<T> InitializableFromZeroed for T where T: Default, | |
Called to initialize a place to a valid value, after it is set to all-bits-zero. Read more