Struct hedwig::googlepubsub::Publisher[][src]

pub struct Publisher<C, R = ExponentialBackoff<StatusCodeSet>> { /* fields omitted */ }
This is supported on crate feature google only.
Expand description

A publisher for sending messages to PubSub topics

Implementations

Set the retry policy for this Publisher.

If a publishing operation encounters an error, the given retry policy will be consulted to possibly retry the operation, or otherwise propagate the error to the caller.

Trait Implementations

The error type that may be encountered when publishing a message

The Sink type provided by the publisher to accept messages, validate them, then publish them to the destination. Read more

Create a new sink to accept messages. Read more

Create a new sink to accept messages. 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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more