pub struct TransactionContext {
pub tag: String,
pub payload: Vec<u8>,
}Fields§
§tag: String§payload: Vec<u8>Implementations§
Source§impl TransactionContext
impl TransactionContext
pub fn initial_read() -> ProcessResult<TransactionContext>
pub fn read_payload<T: for<'a> Deserialize<'a>>(&self) -> ProcessResult<T>
Auto Trait Implementations§
impl Freeze for TransactionContext
impl RefUnwindSafe for TransactionContext
impl Send for TransactionContext
impl Sync for TransactionContext
impl Unpin for TransactionContext
impl UnwindSafe for TransactionContext
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