pub struct Notify<const N: usize, T: Debug + Clone>(_);
Expand description

Wait for notifications of new discoveries, buffering up to 16 discoveries, created using Chart::notify().

Implementations

await the next discovered instance. Returns the id and custom messag for new node when it is discovered.

Note

Can only be called on a Notify for a chart created with ChartBuilder::custom_msg()

Errors

If more the 16 discoveries have been made since this was called this returns RecvError::Lagged

await the next discovered instance. Returns the id and custom messages for new node when it is discovered.

Note

Can only be called on a Notify for a chart created with ChartBuilder::custom_msg()

Errors

If more the 16 discoveries have been made since this was called this returns RecvError::Lagged

await the next discovered instance. Returns the id and nth custom messages for new node when it is discovered.

Note

Can only be called on a Notify for a chart created with ChartBuilder::custom_msg()

Errors

If more the 16 discoveries have been made since this was called this returns RecvError::Lagged

await the next discovered instance. Returns the id and service adresses for new node when it is discovered.

Note

Can only be called on a Notify for a chart created with ChartBuilder::finish() that had as single service port set.

Errors

If more the 16 discoveries have been made since this was called this returns RecvError::Lagged

await the next discovered instance. Buffers up to 16 discoveries. Returns the id and service adresseses for new node when it is discovered.

Note

Can only be called on a Notify for a chart created with ChartBuilder::finish() that had multiple service ports set.

Errors

If more the 16 discoveries have been made since this was called this returns RecvError::Lagged

await the next discovered instance. Buffers up to 16 discoveries. Returns the id and nth service adresses for new node when it is discovered.

Note

Can only be called on a Notify for a chart created with ChartBuilder::finish() that had multiple service ports set.

Errors

If more the 16 discoveries have been made since this was called this returns RecvError::Lagged

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.

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

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.

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