Module xtra::sink

source · []
Expand description

Module for the sink equivalents to Address and MessageChannel.

Structs

An AddressSink is the futures Sink returned by Address::into_sink. Similarly to with addresses, the strong variety of AddressSink will prevent the actor from being dropped, whereas the weak variety will not.

Traits

A MessageSink is similar to a MessageChannel, but it is a sink and operates asynchronously.

A StrongMessageSink is a MessageSink which does inhibit the actor from being dropped while it exists.

A WeakMessageSink is a MessageSink which does not inhibit the actor from being dropped while it exists.

Type Definitions

This variety of AddressSink will not prevent the actor from being dropped.