pub struct Timeout<S> { /* private fields */ }
Expand description
Stream for the timeout
method.
Trait Implementations§
Source§impl<S, A> ActorStream<A> for Timeout<S>where
S: ActorStream<A>,
A: Actor,
impl<S, A> ActorStream<A> for Timeout<S>where
S: ActorStream<A>,
A: Actor,
impl<'__pin, S> Unpin for Timeout<S>where
PinnedFieldsOf<__Origin<'__pin, S>>: Unpin,
Auto Trait Implementations§
impl<S> !Freeze for Timeout<S>
impl<S> !RefUnwindSafe for Timeout<S>
impl<S> Send for Timeout<S>where
S: Send,
impl<S> Sync for Timeout<S>where
S: Sync,
impl<S> !UnwindSafe for Timeout<S>
Blanket Implementations§
Source§impl<A, S> ActorStreamExt<A> for Swhere
S: ActorStream<A>,
A: Actor,
impl<A, S> ActorStreamExt<A> for Swhere
S: ActorStream<A>,
A: Actor,
Source§fn map<F, U>(self, f: F) -> Map<Self, F>
fn map<F, U>(self, f: F) -> Map<Self, F>
Maps this stream’s items to a different type, returning a new stream of
the resulting type. Read more
Source§fn then<F, Fut>(self, f: F) -> Then<Self, F, Fut>
fn then<F, Fut>(self, f: F) -> Then<Self, F, Fut>
Computes from this stream’s items new items of a different type using
an asynchronous closure. Read more
Source§fn fold<F, Fut>(
self,
init: Fut::Output,
f: F,
) -> Fold<Self, F, Fut, Fut::Output>
fn fold<F, Fut>( self, init: Fut::Output, f: F, ) -> Fold<Self, F, Fut, Fut::Output>
Execute an accumulating asynchronous computation over a stream,
collecting all the values into one final result. Read more
Source§fn take_while<F, Fut>(self, f: F) -> TakeWhile<Self, Self::Item, F, Fut>
fn take_while<F, Fut>(self, f: F) -> TakeWhile<Self, Self::Item, F, Fut>
Take elements from this stream while the provided asynchronous predicate
resolves to
true
. Read moreSource§fn skip_while<F, Fut>(self, f: F) -> SkipWhile<Self, Self::Item, F, Fut>
fn skip_while<F, Fut>(self, f: F) -> SkipWhile<Self, Self::Item, F, Fut>
Skip elements on this stream while the provided asynchronous predicate
resolves to
true
. Read moreSource§fn timeout(self, timeout: Duration) -> Timeout<Self>where
Self: Sized,
fn timeout(self, timeout: Duration) -> Timeout<Self>where
Self: Sized,
Add timeout to stream. Read more
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