pub struct IntkeyTransactionHandler { /* private fields */ }Implementations§
Source§impl IntkeyTransactionHandler
impl IntkeyTransactionHandler
pub fn new() -> IntkeyTransactionHandler
Trait Implementations§
Source§impl Default for IntkeyTransactionHandler
impl Default for IntkeyTransactionHandler
Source§impl TransactionHandler for IntkeyTransactionHandler
impl TransactionHandler for IntkeyTransactionHandler
Source§fn family_name(&self) -> String
fn family_name(&self) -> String
TransactionHandler that defines the business logic for a new transaction family.
The family_name, family_versions, and namespaces functions are
used by the processor to route processing requests to the handler.
family_name should return the name of the transaction family that this
handler can process, e.g. “intkey”
Source§fn family_versions(&self) -> Vec<String>
fn family_versions(&self) -> Vec<String>
family_versions should return a list of versions this transaction
family handler can process, e.g. [“1.0”]
Source§fn namespaces(&self) -> Vec<String>
fn namespaces(&self) -> Vec<String>
namespaces should return a list containing all the handler’s
namespaces, e.g. [“abcdef”]
Source§fn apply(
&self,
request: &TpProcessRequest,
context: &mut dyn TransactionContext,
) -> Result<(), ApplyError>
fn apply( &self, request: &TpProcessRequest, context: &mut dyn TransactionContext, ) -> Result<(), ApplyError>
Apply is the single method where all the business logic for a
transaction family is defined. The method will be called by the
transaction processor upon receiving a TpProcessRequest that the
handler understands and will pass in the TpProcessRequest and an
initialized instance of the Context type.
Auto Trait Implementations§
impl Freeze for IntkeyTransactionHandler
impl RefUnwindSafe for IntkeyTransactionHandler
impl Send for IntkeyTransactionHandler
impl Sync for IntkeyTransactionHandler
impl Unpin for IntkeyTransactionHandler
impl UnwindSafe for IntkeyTransactionHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more