[−][src]Struct blocking_permit::BlockingPermitFuture
A future which resolves to a BlockingPermit
.
Methods
impl<'a> BlockingPermitFuture<'a>
[src]
ⓘImportant traits for BlockingPermitFuture<'a>pub fn new(semaphore: &Semaphore) -> BlockingPermitFuture
[src]
ⓘImportant traits for BlockingPermitFuture<'a>
Construct given Semaphore
reference.
ⓘImportant traits for SyncBlockingPermitFuture<'a>pub fn make_sync(self) -> SyncBlockingPermitFuture<'a>
[src]
ⓘImportant traits for SyncBlockingPermitFuture<'a>
Make a Sync
version of this future by wrapping with a Mutex
.
Trait Implementations
impl<'a> Debug for BlockingPermitFuture<'a>
[src]
impl<'a> FusedFuture for BlockingPermitFuture<'a>
[src]
fn is_terminated(&self) -> bool
[src]
impl<'a> Future for BlockingPermitFuture<'a>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for BlockingPermitFuture<'a>
impl<'a> Send for BlockingPermitFuture<'a>
impl<'a> !Sync for BlockingPermitFuture<'a>
impl<'a> !Unpin for BlockingPermitFuture<'a>
impl<'a> !UnwindSafe for BlockingPermitFuture<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<F, T, E> TryFuture for F where
F: Future<Output = Result<T, E>> + ?Sized,
[src]
F: Future<Output = Result<T, E>> + ?Sized,
type Ok = T
The type of successful values yielded by this future
type Error = E
The type of failures yielded by this future
fn try_poll(self: Pin<&mut F>, cx: &mut Context) -> Poll<<F as Future>::Output>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,