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.
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
.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.