pub struct TxFuture<'tx> { /* private fields */ }Expand description
TX future structure.
Implementations§
Source§impl<'tx> TxFuture<'tx>
impl<'tx> TxFuture<'tx>
Sourcepub unsafe fn new(
tx: &'tx mut TxAsync,
waker_idx: usize,
data: &[u8],
) -> Result<TxFuture<'tx>, InvalidWakerIndex>
pub unsafe fn new( tx: &'tx mut TxAsync, waker_idx: usize, data: &[u8], ) -> Result<TxFuture<'tx>, InvalidWakerIndex>
Create a new TX future which can be used for asynchronous TX operations.
§Safety
This function stores the raw pointer of the passed data slice. The user MUST ensure that the slice outlives the data structure.
Trait Implementations§
Auto Trait Implementations§
impl<'tx> Freeze for TxFuture<'tx>
impl<'tx> RefUnwindSafe for TxFuture<'tx>
impl<'tx> Send for TxFuture<'tx>
impl<'tx> !Sync for TxFuture<'tx>
impl<'tx> Unpin for TxFuture<'tx>
impl<'tx> !UnwindSafe for TxFuture<'tx>
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<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more