pub struct JoinControl { /* private fields */ }Expand description
The app’s hold on a running join: cancel it, or ask it to check for approval often while the app shows the wait.
Implementations§
Source§impl JoinControl
impl JoinControl
Sourcepub fn check_often(&self, interval: Duration) -> SyncOftenGuard
pub fn check_often(&self, interval: Duration) -> SyncOftenGuard
Have the join check for approval at most interval after its last
check ended, until the guard drops; a check already that overdue runs
at once. With several guards held, the shortest interval wins. Checks
that find the request waiting still count toward the backoff, and a
provider cooldown still holds every check (§13.2).
Sourcepub fn parked_from_now(&self) -> impl Future<Output = ()> + Send + 'static
pub fn parked_from_now(&self) -> impl Future<Output = ()> + Send + 'static
Wait until the join’s wait parks in a poll begun after this call, having seen all the caller did before.
Auto Trait Implementations§
impl Freeze for JoinControl
impl RefUnwindSafe for JoinControl
impl Send for JoinControl
impl Sync for JoinControl
impl Unpin for JoinControl
impl UnsafeUnpin for JoinControl
impl UnwindSafe for JoinControl
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 moreCreates a shared type from an unshared type.