[−][src]Struct actix::fut::StreamTimeout
Future for the timeout
combinator, interrupts computations if it takes
more than timeout
.
This is created by the ActorFuture::timeout()
method.
Trait Implementations
impl<S> ActorStream for StreamTimeout<S> where
S: ActorStream + Unpin,
[src]
S: ActorStream + Unpin,
type Item = Result<S::Item, ()>
The type of item this stream will yield on success.
type Actor = S::Actor
The actor within which this stream runs.
fn poll_next(
self: Pin<&mut Self>,
act: &mut S::Actor,
ctx: &mut <S::Actor as Actor>::Context,
task: &mut Context
) -> Poll<Option<Result<S::Item, ()>>>
[src]
self: Pin<&mut Self>,
act: &mut S::Actor,
ctx: &mut <S::Actor as Actor>::Context,
task: &mut Context
) -> Poll<Option<Result<S::Item, ()>>>
fn map<U, F>(self, f: F) -> StreamMap<Self, F> where
F: FnMut(Self::Item, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> U,
Self: Sized,
[src]
F: FnMut(Self::Item, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> U,
Self: Sized,
fn then<F, U>(self, f: F) -> StreamThen<Self, F, U> where
F: FnMut(Self::Item, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> U,
U: IntoActorFuture<Actor = Self::Actor>,
Self: Unpin + Sized,
[src]
F: FnMut(Self::Item, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> U,
U: IntoActorFuture<Actor = Self::Actor>,
Self: Unpin + Sized,
fn fold<F, T, Fut>(self, init: T, f: F) -> StreamFold<Self, F, Fut, T> where
F: FnMut(T, Self::Item, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> Fut,
Fut: IntoActorFuture<Actor = Self::Actor, Output = T>,
Self: Sized,
[src]
F: FnMut(T, Self::Item, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> Fut,
Fut: IntoActorFuture<Actor = Self::Actor, Output = T>,
Self: Sized,
fn timeout(self, timeout: Duration) -> StreamTimeout<Self> where
Self: Sized + Unpin,
[src]
Self: Sized + Unpin,
fn finish(self) -> StreamFinish<Self> where
Self: Sized + Unpin,
[src]
Self: Sized + Unpin,
impl<S: Debug> Debug for StreamTimeout<S> where
S: ActorStream + Unpin,
[src]
S: ActorStream + Unpin,
Auto Trait Implementations
impl<S> !RefUnwindSafe for StreamTimeout<S>
impl<S> Send for StreamTimeout<S> where
S: Send,
S: Send,
impl<S> Sync for StreamTimeout<S> where
S: Sync,
S: Sync,
impl<S> Unpin for StreamTimeout<S>
impl<S> !UnwindSafe for StreamTimeout<S>
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,
ⓘImportant traits for &'_ mut Ffn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'_ mut F
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,