pub struct Acquire<'a, S, C, R>{ /* private fields */ }Expand description
A Future that acquires a permit from a SemaphoreQueue.
Trait Implementations§
Source§impl<S: SemaphoreState + ?Sized, C: IsCloseable, R: RawMutex> Future for Acquire<'_, S, C, R>
impl<S: SemaphoreState + ?Sized, C: IsCloseable, R: RawMutex> Future for Acquire<'_, S, C, R>
Source§type Output = Result<<S as SemaphoreState>::Permit, <C as IsCloseable>::AcquireError<<S as SemaphoreState>::Params>>
type Output = Result<<S as SemaphoreState>::Permit, <C as IsCloseable>::AcquireError<<S as SemaphoreState>::Params>>
The type of value produced on completion.
impl<'__pin, 'a, S, C, R> Unpin for Acquire<'a, S, C, R>where
PinnedFieldsOf<__Origin<'__pin, 'a, S, C, R>>: Unpin,
S: ?Sized + SemaphoreState,
C: IsCloseable,
R: RawMutex,
Auto Trait Implementations§
impl<'a, S, C, R> !Freeze for Acquire<'a, S, C, R>
impl<'a, S, C, R> !RefUnwindSafe for Acquire<'a, S, C, R>
impl<'a, S, C, R> Send for Acquire<'a, S, C, R>where
<S as SemaphoreState>::Params: Send,
<S as SemaphoreState>::Permit: Send,
<C as Sealed>::Closed<Option<<S as SemaphoreState>::Params>>: Send,
R: Sync,
S: Send + ?Sized,
<C as Sealed>::Closed<()>: Send,
impl<'a, S, C, R> Sync for Acquire<'a, S, C, R>
impl<'a, S, C, R> !UnwindSafe for Acquire<'a, S, C, R>
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