Struct actix::fut::stream::Timeout [−][src]
Stream for the timeout
method.
Trait Implementations
impl<S, A> ActorStream<A> for Timeout<S> where
S: ActorStream<A>,
A: Actor,
[src]
S: ActorStream<A>,
A: Actor,
type Item = Result<S::Item, ()>
The type of item this stream will yield on success.
fn poll_next(
self: Pin<&mut Self>,
act: &mut A,
ctx: &mut A::Context,
task: &mut Context<'_>
) -> Poll<Option<Result<S::Item, ()>>>
[src]
self: Pin<&mut Self>,
act: &mut A,
ctx: &mut A::Context,
task: &mut Context<'_>
) -> Poll<Option<Result<S::Item, ()>>>
impl<S: Debug> Debug for Timeout<S>
[src]
impl<'__pin, S> Unpin for Timeout<S> where
__Origin<'__pin, S>: Unpin,
[src]
__Origin<'__pin, S>: Unpin,
Auto Trait Implementations
impl<S> !RefUnwindSafe for Timeout<S>
impl<S> Send for Timeout<S> where
S: Send,
S: Send,
impl<S> Sync for Timeout<S> where
S: Sync,
S: Sync,
impl<S> !UnwindSafe for Timeout<S>
Blanket Implementations
impl<A, S> ActorStreamExt<A> for S where
A: Actor,
S: ActorStream<A>,
[src]
A: Actor,
S: ActorStream<A>,
fn map<Fn, U>(self, f: Fn) -> Map<Self, Fn> where
Fn: FnMut(Self::Item, &mut A, &mut A::Context) -> U,
Self: Sized,
[src]
Fn: FnMut(Self::Item, &mut A, &mut A::Context) -> U,
Self: Sized,
fn then<Fn, Fut>(self, f: Fn) -> Then<Self, Fn, Fut::Future> where
Fn: FnMut(Self::Item, &mut A, &mut A::Context) -> Fut,
Fut: IntoActorFuture<A>,
Self: Sized,
[src]
Fn: FnMut(Self::Item, &mut A, &mut A::Context) -> Fut,
Fut: IntoActorFuture<A>,
Self: Sized,
fn fold<Fn, Fut>(
self,
init: Fut::Output,
f: Fn
) -> Fold<Self, Fn, Fut::Future, Fut::Output> where
Fn: FnMut(Fut::Output, Self::Item, &mut A, &mut A::Context) -> Fut,
Fut: IntoActorFuture<A>,
Self: Sized,
[src]
self,
init: Fut::Output,
f: Fn
) -> Fold<Self, Fn, Fut::Future, Fut::Output> where
Fn: FnMut(Fut::Output, Self::Item, &mut A, &mut A::Context) -> Fut,
Fut: IntoActorFuture<A>,
Self: Sized,
fn take_while<Fn, Fut>(
self,
f: Fn
) -> TakeWhile<Self, Self::Item, Fut::Future, Fn> where
Fn: FnMut(&Self::Item, &mut A, &mut A::Context) -> Fut,
Fut: IntoActorFuture<A, Output = bool>,
Self: Sized,
[src]
self,
f: Fn
) -> TakeWhile<Self, Self::Item, Fut::Future, Fn> where
Fn: FnMut(&Self::Item, &mut A, &mut A::Context) -> Fut,
Fut: IntoActorFuture<A, Output = bool>,
Self: Sized,
fn skip_while<Fn, Fut>(
self,
f: Fn
) -> SkipWhile<Self, Self::Item, Fn, Fut::Future> where
Fn: FnMut(&Self::Item, &mut A, &mut A::Context) -> Fut,
Fut: IntoActorFuture<A, Output = bool>,
Self: Sized,
[src]
self,
f: Fn
) -> SkipWhile<Self, Self::Item, Fn, Fut::Future> where
Fn: FnMut(&Self::Item, &mut A, &mut A::Context) -> Fut,
Fut: IntoActorFuture<A, Output = bool>,
Self: Sized,
fn timeout(self, timeout: Duration) -> Timeout<Self> where
Self: Sized,
[src]
Self: Sized,
fn collect<C>(self) -> Collect<Self, C> where
C: Default + Extend<Self::Item>,
Self: Sized,
[src]
C: Default + Extend<Self::Item>,
Self: Sized,
fn finish(self) -> Finish<Self> where
Self: Sized,
[src]
Self: Sized,
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,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
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.
pub 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>,