Crate multi_producer_sink [] [src]

This crate provides a cloneable wrapper around sinks that allow multiple, independent tasks to write to the same underlying sink.

Structs

Closed

A future that emits the wrapped sink once the last handle has been closed, or once an error has been encountered.

MPS

A multi producer sink (MPS). This is a cloneable handle to a single sink of type S, and each handle can be used to write to the inner sink.

Functions

mps

Create a new MPS, wrapping the given sink. Also returns a future that emits the wrapped sink once the last MPS handle has been closed.