Struct tokio_stream::stream_ext::any::AnyFuture
source · pub struct AnyFuture<'a, St: ?Sized, F> {
stream: &'a mut St,
f: F,
_pin: PhantomPinned,
}
Expand description
Future for the any
method.
Fields§
§stream: &'a mut St
§f: F
§_pin: PhantomPinned
Implementations§
Trait Implementations§
impl<'__pin, 'a, St: ?Sized, F> Unpin for AnyFuture<'a, St, F>where
PinnedFieldsOf<__Origin<'__pin, 'a, St, F>>: Unpin,
Auto Trait Implementations§
impl<'a, St, F> Freeze for AnyFuture<'a, St, F>
impl<'a, St, F> RefUnwindSafe for AnyFuture<'a, St, F>
impl<'a, St, F> Send for AnyFuture<'a, St, F>
impl<'a, St, F> Sync for AnyFuture<'a, St, F>
impl<'a, St, F> !UnwindSafe for AnyFuture<'a, St, F>
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
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