pub struct AcquireFuture<'a>(/* private fields */);
Expand description
A Future
returned by Semaphore::acquire
that produces a SemaphoreGuard
.
Trait Implementations§
Source§impl<'a> Debug for AcquireFuture<'a>
impl<'a> Debug for AcquireFuture<'a>
Source§impl<'a> Drop for AcquireFuture<'a>
impl<'a> Drop for AcquireFuture<'a>
Source§impl<'a> Future for AcquireFuture<'a>
impl<'a> Future for AcquireFuture<'a>
Source§type Output = Result<SemaphoreGuard<'a>, PoisonError>
type Output = Result<SemaphoreGuard<'a>, PoisonError>
The type of value produced on completion.
impl<'a> RefUnwindSafe for AcquireFuture<'a>
impl<'a> Send for AcquireFuture<'a>
impl<'a> Sync for AcquireFuture<'a>
impl<'a> UnwindSafe for AcquireFuture<'a>
Auto Trait Implementations§
impl<'a> !Freeze for AcquireFuture<'a>
impl<'a> !Unpin for AcquireFuture<'a>
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<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more