pub struct KlinePullFlightGuard { /* private fields */ }Expand description
Single-flight owner for one (sec, rehab, kl_type, session) CMD6161 pull.
Dropping it releases the slot and wakes every wait_for_kline_pull_*.
Ref: C++ NNBiz_Qot_KLRT::PullNewestKLByCount returns the existing
SubInfo.nReqKey while a pull is in flight and clears it on reply
(NNBiz_Qot_KLRT.cpp:1706-1717,735-748).
Trait Implementations§
Source§impl Drop for KlinePullFlightGuard
impl Drop for KlinePullFlightGuard
Auto Trait Implementations§
impl !RefUnwindSafe for KlinePullFlightGuard
impl !UnwindSafe for KlinePullFlightGuard
impl Freeze for KlinePullFlightGuard
impl Send for KlinePullFlightGuard
impl Sync for KlinePullFlightGuard
impl Unpin for KlinePullFlightGuard
impl UnsafeUnpin for KlinePullFlightGuard
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more