pub struct TwoPhaseCommitSender { /* private fields */ }Expand description
Sender side of the two-phase bounded MPSC commit channel.
Implementations§
Source§impl TwoPhaseCommitSender
impl TwoPhaseCommitSender
Sourcepub fn reserve(&self) -> SendPermit<'_>
pub fn reserve(&self) -> SendPermit<'_>
Reserve a slot (phase 1). Blocks when channel is saturated.
Sourcepub fn try_reserve_for(&self, timeout: Duration) -> Option<SendPermit<'_>>
pub fn try_reserve_for(&self, timeout: Duration) -> Option<SendPermit<'_>>
Reserve with timeout; None means caller gave up (cancel during reserve).
Trait Implementations§
Source§impl Clone for TwoPhaseCommitSender
impl Clone for TwoPhaseCommitSender
Source§fn clone(&self) -> TwoPhaseCommitSender
fn clone(&self) -> TwoPhaseCommitSender
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 moreAuto Trait Implementations§
impl Freeze for TwoPhaseCommitSender
impl !RefUnwindSafe for TwoPhaseCommitSender
impl Send for TwoPhaseCommitSender
impl Sync for TwoPhaseCommitSender
impl Unpin for TwoPhaseCommitSender
impl UnsafeUnpin for TwoPhaseCommitSender
impl !UnwindSafe for TwoPhaseCommitSender
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).