pub struct Transaction(/* private fields */);Expand description
A generic transaction
Implementations§
Source§impl Transaction
impl Transaction
Sourcepub fn from_slice(buffer: &[u8]) -> Self
pub fn from_slice(buffer: &[u8]) -> Self
Creates a transaction from a raw bytes
Sourcepub fn from_canon<C>(c: &C) -> Selfwhere
C: Canon,
pub fn from_canon<C>(c: &C) -> Selfwhere
C: Canon,
Creates a transaction from a type implementing Canon
Sourcepub fn cast<C>(&self) -> Result<C, CanonError>where
C: Canon,
pub fn cast<C>(&self) -> Result<C, CanonError>where
C: Canon,
Casts the generic query to given type
Trait Implementations§
Source§impl Canon for Transaction
impl Canon for Transaction
Source§impl Clone for Transaction
impl Clone for Transaction
Source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Transaction
impl Debug for Transaction
Source§impl Default for Transaction
impl Default for Transaction
Source§fn default() -> Transaction
fn default() -> Transaction
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
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