fn get_options(&self) -> Vec<GString>
None terminated array of string with supported bufferpool options for
self. An option would typically be enabled with
None terminated array
fn has_option(&self, option: &str) -> bool
Check if the bufferpool supports
true if the buffer pool contains
self is active. A pool can be activated with the
true when the pool is active.
fn set_active(&self, active: bool) -> Result<(), BoolError>
Control the active state of
self. When the pool is inactive, new calls to
BufferPool::acquire_buffer will return with
Activating the bufferpool will preallocate all resources in the pool based on the configuration of the pool.
Deactivating will free the resources again when there are no outstanding buffers. When there are outstanding buffers, they will be freed as soon as they are all returned to the pool.
the new active state
false when the pool was not configured or when preallocation of the
fn set_flushing(&self, flushing: bool)
Enable or disable the flushing state of a
self without freeing or
whether to start or stop flushing