pub struct TransactionState<'a>(/* private fields */);
Expand description
This tracker type indicates that transaction state information is available.
Value is a string containing ASCII characters, each of which indicates some aspect of the transaction state.
Implementations§
Source§impl<'a> TransactionState<'a>
impl<'a> TransactionState<'a>
pub fn new(value: impl Into<Cow<'a, [u8]>>) -> TransactionState<'a>
Sourcepub fn into_owned(self) -> TransactionState<'static>
pub fn into_owned(self) -> TransactionState<'static>
Returns a 'static
version of self
.
Trait Implementations§
Source§impl<'a> Clone for TransactionState<'a>
impl<'a> Clone for TransactionState<'a>
Source§fn clone(&self) -> TransactionState<'a>
fn clone(&self) -> TransactionState<'a>
Returns a copy 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<'a> Debug for TransactionState<'a>
impl<'a> Debug for TransactionState<'a>
Source§impl<'a> Hash for TransactionState<'a>
impl<'a> Hash for TransactionState<'a>
Source§impl<'de> MyDeserialize<'de> for TransactionState<'de>
impl<'de> MyDeserialize<'de> for TransactionState<'de>
Source§const SIZE: Option<usize> = None
const SIZE: Option<usize> = None
Size hint of a serialized value (in bytes), if it’s constant.
Source§fn deserialize(
_: <TransactionState<'de> as MyDeserialize<'de>>::Ctx,
buf: &mut ParseBuf<'de>,
) -> Result<TransactionState<'de>, Error>
fn deserialize( _: <TransactionState<'de> as MyDeserialize<'de>>::Ctx, buf: &mut ParseBuf<'de>, ) -> Result<TransactionState<'de>, Error>
Deserializes self from the given
buf
. Read moreSource§impl MySerialize for TransactionState<'_>
impl MySerialize for TransactionState<'_>
Source§impl<'a> PartialEq for TransactionState<'a>
impl<'a> PartialEq for TransactionState<'a>
impl<'a> Eq for TransactionState<'a>
impl<'a> StructuralPartialEq for TransactionState<'a>
Auto Trait Implementations§
impl<'a> Freeze for TransactionState<'a>
impl<'a> RefUnwindSafe for TransactionState<'a>
impl<'a> Send for TransactionState<'a>
impl<'a> Sync for TransactionState<'a>
impl<'a> Unpin for TransactionState<'a>
impl<'a> UnwindSafe for TransactionState<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.