pub struct Zones<T, A: MemPool> { /* private fields */ }
Expand description

Memory Zones

It manages memory zones to optimally dedicate a zone to each cpu for scalability.

Implementations

Creates a new Zones object

  • count is the number of zones (usually is the number cpus)
  • offset is the size of reserved memory to be allocated for metadata

Returns the size of zones

Returns the number of zones

Returns a mutable reference to the i-th zone object

Returns a mutable reference to the zone object associated with the current cpu

Returns a mutable reference to the zone object associated with the given offset

Trait Implementations

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. 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 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.