Struct actix::dev::channel::AddressReceiver [−][src]
pub struct AddressReceiver<A: Actor> { /* fields omitted */ }
Expand description
The receiving end of a channel which implements the Stream
trait.
This is a concrete implementation of a stream which can be used to represent
a stream of values being computed elsewhere. This is created by the
channel
method.
Implementations
Sets the channel capacity.
This method wakes up all waiting senders if the new capacity is greater than the current one.
Returns the sender side of the channel.
Creates the sender producer.
Trait Implementations
Attempt to pull out the next value of this stream, registering the
current task for wakeup if the value is not yet available, and returning
None
if the stream is exhausted. Read more
Auto Trait Implementations
impl<A> !RefUnwindSafe for AddressReceiver<A>
impl<A> Send for AddressReceiver<A>
impl<A> Sync for AddressReceiver<A>
impl<A> Unpin for AddressReceiver<A>
impl<A> !UnwindSafe for AddressReceiver<A>
Blanket Implementations
Mutably borrows from an owned value. Read more
Creates a future that resolves to the next item in the stream. Read more
Maps this stream’s items to a different type, returning a new stream of the resulting type. Read more
Creates a stream which gives the current iteration count as well as the next value. Read more
Filters the values produced by this stream according to the provided asynchronous predicate. Read more
Filters the values produced by this stream while simultaneously mapping them to a different type according to the provided asynchronous closure. Read more
Computes from this stream’s items new items of a different type using an asynchronous closure. Read more
Transforms a stream into a collection, returning a future representing the result of that computation. Read more
Converts a stream of pairs into a future, which resolves to pair of containers. Read more
Concatenate all items of a stream into a single extendable destination, returning a future representing the end result. Read more
Execute an accumulating asynchronous computation over a stream, collecting all the values into one final result. Read more
Flattens a stream of streams into just one continuous stream. Read more
Maps a stream like StreamExt::map
but flattens nested Stream
s. Read more
Combinator similar to StreamExt::fold
that holds internal state
and produces a new stream. Read more
Skip elements on this stream while the provided asynchronous predicate
resolves to true
. Read more
Take elements from this stream while the provided asynchronous predicate
resolves to true
. Read more
Take elements from this stream until the provided future resolves. Read more
Runs this stream to completion, executing the provided asynchronous closure for each element on the stream. Read more
Creates a new stream of at most n
items of the underlying stream. Read more
Creates a new stream which skips n
items of the underlying stream. Read more
An adapter for zipping two streams together. Read more
Adapter for chaining two streams. Read more
Do something with each item of this stream, afterwards passing it on. Read more
Wrap this stream in an Either
stream, making it the left-hand variant
of that Either
. Read more
Wrap this stream in an Either
stream, making it the right-hand variant
of that Either
. Read more
A convenience method for calling Stream::poll_next
on Unpin
stream types. Read more
type Stream = StreamWrap<S, A>
type Stream = StreamWrap<S, A>
The stream that this type can be converted into.
Convert normal stream to a ActorStream