Struct flo_stream::SinglePublisher[][src]

pub struct SinglePublisher<Message> { /* fields omitted */ }
Expand description

A single publisher is a publisher that sends each message to only a single subscriber rather than all of them

This is useful for scheduling messages on the first available worker.

Implementations

Creates a new single publisher, which will buffer the specified number of messages

Counts the number of subscribers in this publisher

Creates a duplicate publisher that can be used to publish to the same streams as this object

Trait Implementations

Executes the destructor for this type. Read more

Subscribes to this publisher

Subscribers only receive messages sent to the publisher after they are created.

Reserves a space for a message with the subscribers, returning when it’s ready

Waits until all subscribers have consumed all pending messages

Returns true if this publisher is closed (will not publish any further messages to its subscribers)

Future that returns when this publisher is closed

Publishes a message to the subscribers of this object Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.