pub struct Subscriber<T, E = Error> { /* private fields */ }
Expand description

New PUB-SUB subscriber.

Implementations

Wrap non-typed subscriber.

Create new subscriber for tests.

Reject subscription with given error.

Reject subscription with given error.

The returned future will resolve when the response is sent to the client.

Assign id to this subscriber. This method consumes Subscriber and returns Sink if the connection is still open or error otherwise.

Assign id to this subscriber. This method consumes Subscriber and resolves to Sink if the connection is still open and the id has been sent or to error otherwise.

Trait Implementations

Formats the value using the given formatter. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.