pub struct DynSubscriber<'a, T: Clone>(_);
Expand description

A subscriber that holds a dynamic reference to the channel

Methods from Deref<Target = Sub<'a, dyn PubSubBehavior<T> + 'a, T>>

Wait for a published message

Wait for a published message (ignoring lag results)

Try to see if there’s a published message we haven’t received yet.

This function does not peek. The message is received if there is one.

Try to see if there’s a published message we haven’t received yet (ignoring lag results).

This function does not peek. The message is received if there is one.

The amount of messages this subscriber hasn’t received yet

Trait Implementations

The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.

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.