Struct hubs::HubsConsumer[][src]

pub struct HubsConsumer<T> { /* fields omitted */ }
Expand description

The consumer side of the Hubs.

Use this one for reading data from the structure. See Hubs for an overview. The Hubs Consumer may be moved around threads. Do not try to do this whilst you borrowed a set of chunks, I haven’t tested that.

To get all committed chunks, call .get_chunks_for_tick().

You can not get only a part of these chunks. If you do not read all chunks retrieved in one read call, they are lost.

Implementations

Gives you all currently committed Chunks in a ChunkBlock. Once given out, it is your responsibility to either process them or allow them to be lost.

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.

Performs the conversion.

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.