Struct actix::fut::StreamWrap [−][src]
Trait Implementations
impl<S, A> ActorStream for StreamWrap<S, A> where
S: Stream,
A: Actor,
[src]
S: Stream,
A: Actor,
type Item = S::Item
The type of item this stream will yield on success.
type Actor = A
The actor within which this stream runs.
fn poll_next(
self: Pin<&mut Self>,
_: &mut Self::Actor,
_: &mut <Self::Actor as Actor>::Context,
task: &mut Context<'_>
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
_: &mut Self::Actor,
_: &mut <Self::Actor as Actor>::Context,
task: &mut Context<'_>
) -> Poll<Option<Self::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: Sized,
[src]
F: FnMut(Self::Item, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> U,
U: IntoActorFuture<Actor = Self::Actor>,
Self: 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,
[src]
Self: Sized,
fn finish(self) -> StreamFinish<Self> where
Self: Sized,
[src]
Self: Sized,
impl<'__pin, S, A> Unpin for StreamWrap<S, A> where
__Origin<'__pin, S, A>: Unpin,
S: Stream,
[src]
__Origin<'__pin, S, A>: Unpin,
S: Stream,
Auto Trait Implementations
impl<S, A> RefUnwindSafe for StreamWrap<S, A> where
A: RefUnwindSafe,
S: RefUnwindSafe,
[src]
A: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, A> Send for StreamWrap<S, A> where
A: Send,
S: Send,
[src]
A: Send,
S: Send,
impl<S, A> Sync for StreamWrap<S, A> where
A: Sync,
S: Sync,
[src]
A: Sync,
S: Sync,
impl<S, A> UnwindSafe for StreamWrap<S, A> where
A: UnwindSafe,
S: UnwindSafe,
[src]
A: UnwindSafe,
S: UnwindSafe,
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,
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>,