[−][src]Struct sawtooth_sabre::handler::SabreTransactionHandler
Handles Sabre Transactions
This handler implements the Sawtooth TransactionHandler trait, in order to execute Sabre transaction payloads. These payloads include on-chain smart contracts executed in a WebAssembly virtual machine.
WebAssembly (Wasm) is a stack-based virtual machine newly implemented in major browsers. It is well-suited for the purposes of smart contract execution due to its sandboxed design, growing popularity, and tool support.
Methods
impl SabreTransactionHandler
[src]
pub fn new() -> SabreTransactionHandler
[src]
Constructs a new SabreTransactionHandler
Trait Implementations
impl TransactionHandler for SabreTransactionHandler
[src]
fn family_name(&self) -> String
[src]
fn family_versions(&self) -> Vec<String>
[src]
fn namespaces(&self) -> Vec<String>
[src]
fn apply(
&self,
request: &TpProcessRequest,
context: &mut dyn TransactionContext
) -> Result<(), ApplyError>
[src]
&self,
request: &TpProcessRequest,
context: &mut dyn TransactionContext
) -> Result<(), ApplyError>
Auto Trait Implementations
impl RefUnwindSafe for SabreTransactionHandler
impl Send for SabreTransactionHandler
impl Sync for SabreTransactionHandler
impl Unpin for SabreTransactionHandler
impl UnwindSafe for SabreTransactionHandler
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,