[−][src]Struct exonum_cryptocurrency_advanced::Service
Exonum Service
implementation.
Trait Implementations
impl Default for Service
[src]
impl Debug for Service
[src]
impl Service for Service
[src]
fn service_id(&self) -> u16
[src]
fn service_name(&self) -> &str
[src]
fn state_hash(&self, view: &dyn Snapshot) -> Vec<Hash>
[src]
fn tx_from_raw(
&self,
raw: RawTransaction
) -> Result<Box<dyn Transaction>, Error>
[src]
&self,
raw: RawTransaction
) -> Result<Box<dyn Transaction>, Error>
fn wire_api(&self, builder: &mut ServiceApiBuilder)
[src]
fn initialize(&self, fork: &mut Fork) -> Value
[src]
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
fn before_commit(&self, fork: &mut Fork)
[src]
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
fn after_commit(&self, context: &ServiceContext)
[src]
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
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,
unsafe fn initialize(place: *mut T)
impl<T> Same for T
type Output = T
Should always be Self