pub struct ChannelStateCommitter { /* private fields */ }Implementations§
Source§impl ChannelStateCommitter
impl ChannelStateCommitter
pub fn new(tx: UnboundedSender<ThreadChangeSet>) -> Self
Trait Implementations§
Source§impl Clone for ChannelStateCommitter
impl Clone for ChannelStateCommitter
Source§fn clone(&self) -> ChannelStateCommitter
fn clone(&self) -> ChannelStateCommitter
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 StateCommitter for ChannelStateCommitter
impl StateCommitter for ChannelStateCommitter
Source§fn commit<'life0, 'life1, 'async_trait>(
&'life0 self,
_thread_id: &'life1 str,
changeset: ThreadChangeSet,
precondition: VersionPrecondition,
) -> Pin<Box<dyn Future<Output = Result<u64, StateCommitError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn commit<'life0, 'life1, 'async_trait>(
&'life0 self,
_thread_id: &'life1 str,
changeset: ThreadChangeSet,
precondition: VersionPrecondition,
) -> Pin<Box<dyn Future<Output = Result<u64, StateCommitError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Commit a single change set for a thread. Read more
Auto Trait Implementations§
impl Freeze for ChannelStateCommitter
impl RefUnwindSafe for ChannelStateCommitter
impl Send for ChannelStateCommitter
impl Sync for ChannelStateCommitter
impl Unpin for ChannelStateCommitter
impl UnsafeUnpin for ChannelStateCommitter
impl UnwindSafe for ChannelStateCommitter
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