Struct maitake::sync::semaphore::AcquireOwned
pub struct AcquireOwned { /* private fields */ }
Available on crate feature
alloc
only.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§
§impl Debug for AcquireOwned
impl Debug for AcquireOwned
§impl Future for AcquireOwned
impl Future for AcquireOwned
§type Output = Result<OwnedPermit, Closed>
type Output = Result<OwnedPermit, Closed>
The type of value produced on completion.
§fn poll(
self: Pin<&mut AcquireOwned>,
cx: &mut Context<'_>
) -> Poll<<AcquireOwned as Future>::Output>
fn poll( self: Pin<&mut AcquireOwned>, cx: &mut Context<'_> ) -> Poll<<AcquireOwned as Future>::Output>
Attempt to resolve the future to a final value, registering
the current task for wakeup if the value is not yet available. Read more
impl Sync for AcquireOwned
impl<'pin> Unpin for AcquireOwnedwhere
__AcquireOwned<'pin>: Unpin,
Auto Trait Implementations§
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>
§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<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
§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