pub struct AcquireOwned { /* private fields */ }
Expand description
Future returned from Semaphore::acquire_owned()
.
This is identical to the Acquire
future, except that it takes an
Arc
reference to the Semaphore
, allowing the returned future to
live for the 'static
lifetime, and returns an OwnedPermit
(rather
than a Permit
), which is also valid for the 'static
lifetime.
Trait Implementations§
Source§impl Debug for AcquireOwned
impl Debug for AcquireOwned
Source§impl Drop for AcquireOwned
impl Drop for AcquireOwned
Source§impl Future for AcquireOwned
impl Future for AcquireOwned
impl Sync for AcquireOwned
impl<'pin> Unpin for AcquireOwnedwhere
__AcquireOwned<'pin>: Unpin,
Auto Trait Implementations§
impl !Freeze for AcquireOwned
impl !RefUnwindSafe for AcquireOwned
impl Send for AcquireOwned
impl !UnwindSafe for AcquireOwned
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