pub struct SavedState<E: TransactionHooks> { /* private fields */ }Expand description
Saved transaction state returned by
ChainLockTransaction::save_state_and_use_reserved_token and
ChainLockTransaction::save_state_initial, used to restore an active transaction across
context switches.
Implementations§
Source§impl<E: TransactionHooks> SavedState<E>
impl<E: TransactionHooks> SavedState<E>
Sourcepub const fn transaction(&self) -> NonNull<ChainLockTransaction<E>>
pub const fn transaction(&self) -> NonNull<ChainLockTransaction<E>>
Returns the non-null pointer to the saved transaction.
Trait Implementations§
Source§impl<E: TransactionHooks> Clone for SavedState<E>
impl<E: TransactionHooks> Clone for SavedState<E>
impl<E: TransactionHooks> Copy for SavedState<E>
Source§impl<E: TransactionHooks> Debug for SavedState<E>
impl<E: TransactionHooks> Debug for SavedState<E>
Auto Trait Implementations§
impl<E> !RefUnwindSafe for SavedState<E>
impl<E> !Send for SavedState<E>
impl<E> !Sync for SavedState<E>
impl<E> !UnwindSafe for SavedState<E>
impl<E> Freeze for SavedState<E>
impl<E> Unpin for SavedState<E>
impl<E> UnsafeUnpin for SavedState<E>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)