Struct bus_queue::BusReader

source ·
pub struct BusReader<T> { /* private fields */ }
Expand description

Provides an interface for subscribers

Every BusReader that can keep up with the push frequency should recv every pushed object. BusReaders unable to keep up will miss object once the writer’s index wi is larger then reader’s index ri + size

Implementations

Receives some atomic refrence to an object if queue is not empty, or None if it is

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.