pub struct TransactionalWorker<T> { /* private fields */ }Expand description
Explicit transactional adapter for a stateful transform.
Implementations§
Source§impl<T> TransactionalWorker<T>
impl<T> TransactionalWorker<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Returns the wrapped transform.
Trait Implementations§
Source§impl<T: Clone> Clone for TransactionalWorker<T>
impl<T: Clone> Clone for TransactionalWorker<T>
impl<T: Copy> Copy for TransactionalWorker<T>
Source§impl<T: Debug> Debug for TransactionalWorker<T>
impl<T: Debug> Debug for TransactionalWorker<T>
Source§impl<T: Default> Default for TransactionalWorker<T>
impl<T: Default> Default for TransactionalWorker<T>
Source§impl<Input, T> Transform<Input> for TransactionalWorker<T>where
T: Transform<Input> + TransactionalCheckpoint,
impl<Input, T> Transform<Input> for TransactionalWorker<T>where
T: Transform<Input> + TransactionalCheckpoint,
Source§impl<T> WorkerCheckpoint for TransactionalWorker<T>where
T: TransactionalCheckpoint,
impl<T> WorkerCheckpoint for TransactionalWorker<T>where
T: TransactionalCheckpoint,
Source§type State = <T as TransactionalCheckpoint>::State
type State = <T as TransactionalCheckpoint>::State
Owned serializable transform state.
Source§fn validate_snapshot(&self, state: &Self::State) -> Result<()>
fn validate_snapshot(&self, state: &Self::State) -> Result<()>
Checks state compatibility without mutation.
Source§fn restore_validated(&mut self, state: &Self::State)
fn restore_validated(&mut self, state: &Self::State)
Restores state accepted by
Self::validate_snapshot.Auto Trait Implementations§
impl<T> Forget for TransactionalWorker<T>
impl<T> Freeze for TransactionalWorker<T>where
T: Freeze,
impl<T> RefUnwindSafe for TransactionalWorker<T>where
T: RefUnwindSafe,
impl<T> Send for TransactionalWorker<T>where
T: Send,
impl<T> Sync for TransactionalWorker<T>where
T: Sync,
impl<T> Unpin for TransactionalWorker<T>where
T: Unpin,
impl<T> UnsafeUnpin for TransactionalWorker<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TransactionalWorker<T>where
T: UnwindSafe,
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