Struct smithay_client_toolkit::shm::DoubleMemPool[][src]

pub struct DoubleMemPool { /* fields omitted */ }
Expand description

A Double memory pool, for convenient double-buffering

This type wraps two internal memory pool, and can be use for conveniently implementing double-buffering in your apps.

DoubleMemPool requires a implementation that is called when one of the two internal memory pools becomes free after None was returned from the pool() method.

Implementations

Create a double memory pool

This method checks both its internal memory pools and returns one if that pool does not contain any buffers that are still in use by the server. If both the memory pools contain buffers that are currently in use by the server None will be returned.

Trait Implementations

Formats the value using the given formatter. 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

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.