[−][src]Struct exonum::blockchain::TransactionContext
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
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]
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> Same for T
type Output = T
Should always be Self