pub struct HistoryCommitBarrier { /* private fields */ }Expand description
Completion signal for the durable history barrier emitted at the end of a
run. The runner must not become replaceable until the forwarder has actually
published SessionHistoryCommitted; merely enqueueing the event leaves a
race where a successor can retire this generation first.
Implementations§
Source§impl HistoryCommitBarrier
impl HistoryCommitBarrier
Sourcepub async fn send_and_wait(
&mut self,
event_tx: &Sender<AgentEvent>,
session_id: String,
) -> bool
pub async fn send_and_wait( &mut self, event_tx: &Sender<AgentEvent>, session_id: String, ) -> bool
Enqueue a history barrier and wait until the matching forwarder has
published it. Returns false if the forwarder disappeared first.
Trait Implementations§
Source§impl Clone for HistoryCommitBarrier
impl Clone for HistoryCommitBarrier
Auto Trait Implementations§
impl !RefUnwindSafe for HistoryCommitBarrier
impl !UnwindSafe for HistoryCommitBarrier
impl Freeze for HistoryCommitBarrier
impl Send for HistoryCommitBarrier
impl Sync for HistoryCommitBarrier
impl Unpin for HistoryCommitBarrier
impl UnsafeUnpin for HistoryCommitBarrier
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