[][src]Struct exonum::blockchain::TransactionContext

pub struct TransactionContext<'a> { /* fields omitted */ }

Wrapper around database and tx hash.

Methods

impl<'a> TransactionContext<'a>[src]

pub fn fork(&mut self) -> &mut Fork[src]

Returns fork of current blockchain state.

pub fn service_id(&self) -> u16[src]

Returns id of service that own this transaction.

pub fn author(&self) -> PublicKey[src]

Returns transaction author public key

pub fn tx_hash(&self) -> Hash[src]

Returns current transaction message hash. This hash could be used to link some data in storage for external usage.

Trait Implementations

impl<'a> Debug for TransactionContext<'a>[src]

Auto Trait Implementations

impl<'a> !Send for TransactionContext<'a>

impl<'a> !Sync for TransactionContext<'a>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self