pub struct ReaderId<T> where
    T: 'static, 
{ /* private fields */ }
Expand description

A reader ID which represents a subscription to the events pushed to the EventChannel.

For each reader ID, the last read event is tracked; this way, the buffer gets grown whenever it would overwrite an event which was not yet observed by every ReaderId.

Dropping a ReaderId effectively cancels the subscription to those events.

Note that as long as a ReaderId exists, it is crucial to use it to read the events; otherwise the buffer of the EventChannel will keep growing.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. 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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.