[][src]Struct scrappy_actor::dev::channel::AddressReceiver

pub struct AddressReceiver<A: Actor> { /* fields omitted */ }

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.

Methods

impl<A: Actor> AddressReceiver<A>[src]

pub fn connected(&self) -> bool[src]

Returns whether any senders are still connected.

pub fn capacity(&self) -> usize[src]

Returns the channel capacity.

pub fn set_capacity(&mut self, cap: usize)[src]

Sets the channel capacity.

This method wakes up all waiting senders if the new capacity is greater than the current one.

pub fn sender(&self) -> AddressSender<A>[src]

Returns the sender side of the channel.

pub fn sender_producer(&self) -> AddressSenderProducer<A>[src]

Creates the sender producer.

Trait Implementations

impl<A: Actor> Drop for AddressReceiver<A>[src]

impl<A: Actor> Stream for AddressReceiver<A>[src]

type Item = Envelope<A>

Values yielded by the stream.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> StreamExt for T where
    T: Stream + ?Sized
[src]

impl<St> StreamExt for St where
    St: Stream + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<S, A> WrapStream<A> for S where
    A: Actor,
    S: Unpin + Stream
[src]

type Stream = StreamWrap<S, A>

The stream that this type can be converted into.

type Item = <S as Stream>::Item

The item that the future may resolve with.