Struct hubs::HubsProducer[][src]

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

The producer side of the Hubs.

Use this one for writing into the data structure. See Hubs for an overview. The Hubs Producer may be moved around threads. Do not try to do this whilst you borrowed a chunk, I haven’t tested that.

Implementations

Borrows a Chunk from a Hubs. You must give it back by calling .commit(). There can only be one single chunk given out at any time.

If the Hubs is full, this returns None.

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.