[−][src]Struct async_listen::backpressure::Receiver
The throttler of a stream
See new
for more details
Methods
impl Receiver
[src]
ⓘImportant traits for HasCapacity<'a>pub fn has_capacity(&mut self) -> HasCapacity
[src]
ⓘImportant traits for HasCapacity<'a>
Return future which resolves when the current number active of tokens is less than a limit
If you create tokens in different task than the task that waits
on HasCapacity
there is a race condition.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Receiver
impl Send for Receiver
impl Sync for Receiver
impl Unpin for Receiver
impl UnwindSafe for Receiver
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<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,