[−][src]Struct sawtooth_sdk::processor::TransactionProcessor
Methods
impl<'a> TransactionProcessor<'a>
[src]
pub fn new(endpoint: &str) -> TransactionProcessor
[src]
TransactionProcessor is for communicating with a validator and routing transaction processing requests to a registered handler. It uses ZMQ and channels to handle requests concurrently.
pub fn add_handler(&mut self, handler: &'a dyn TransactionHandler)
[src]
pub fn start(&mut self)
[src]
Connects the transaction processor to a validator and starts listening for requests and routing them to an appropriate transaction handler.
Auto Trait Implementations
impl<'a> !Send for TransactionProcessor<'a>
impl<'a> !Sync for TransactionProcessor<'a>
impl<'a> Unpin for TransactionProcessor<'a>
impl<'a> !UnwindSafe for TransactionProcessor<'a>
impl<'a> !RefUnwindSafe for TransactionProcessor<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
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> 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,