pub enum LazyItem<T> {
Next(Arc<T>),
ItemsRolledOut(u64, BootInstant),
}
Expand description
The next element in the stream or a marker of the number of items rolled out since last polled.
Variants§
Next(Arc<T>)
The next item in the stream.
ItemsRolledOut(u64, BootInstant)
A count of the items dropped between the last call to poll_next and this one.
Trait Implementations§
impl<T> StructuralPartialEq for LazyItem<T>
Auto Trait Implementations§
impl<T> Freeze for LazyItem<T>
impl<T> RefUnwindSafe for LazyItem<T>where
T: RefUnwindSafe,
impl<T> Send for LazyItem<T>
impl<T> Sync for LazyItem<T>
impl<T> Unpin for LazyItem<T>
impl<T> UnwindSafe for LazyItem<T>where
T: RefUnwindSafe,
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more