Struct PermitIterator
pub struct PermitIterator<'a, T> { /* private fields */ }
An Iterator of Permit that can be used to hold n slots in the channel.
PermitIterator values are returned by Sender::reserve_many() and Sender::try_reserve_many()
and are used to guarantee channel capacity before generating n messages to send.
Trait Implementations
impl<'a, T> Iterator for PermitIterator<'a, T>
type Item = Permit<'a, T>;fn next(&mut self) -> Option<Self::Item>fn size_hint(&self) -> (usize, Option<usize>)
impl<T> Debug for PermitIterator<'_, T>
fn fmt(&self, fmt: &mut Formatter<'_>) -> Result
impl<T> Drop for PermitIterator<'_, T>
fn drop(&mut self)
impl<T> ExactSizeIterator for PermitIterator<'_, T>
impl<T> FusedIterator for PermitIterator<'_, T>
Auto Trait Implementations
impl<'a, T> Freeze for PermitIterator<'a, T>
where
&'a Tx<T, Semaphore>: Freeze,
impl<'a, T> RefUnwindSafe for PermitIterator<'a, T>
where
&'a Tx<T, Semaphore>: RefUnwindSafe,
impl<'a, T> Send for PermitIterator<'a, T>
where
&'a Tx<T, Semaphore>: Send,
impl<'a, T> Sync for PermitIterator<'a, T>
where
&'a Tx<T, Semaphore>: Sync,
impl<'a, T> Unpin for PermitIterator<'a, T>
where
&'a Tx<T, Semaphore>: Unpin,
impl<'a, T> UnsafeUnpin for PermitIterator<'a, T>
where
&'a Tx<T, Semaphore>: UnsafeUnpin,
impl<'a, T> UnwindSafe for PermitIterator<'a, T>
where
&'a Tx<T, Semaphore>: UnwindSafe,
Blanket Implementations
impl<I> IntoIterator for PermitIterator<'a, T>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for PermitIterator<'a, T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for PermitIterator<'a, T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for PermitIterator<'a, T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for PermitIterator<'a, T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for PermitIterator<'a, T>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for PermitIterator<'a, T>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for PermitIterator<'a, T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>