#[non_exhaustive]pub struct TablespaceStatistics { /* private fields */ }Expand description
Snapshot of the numeric fields of MySQL’s ha_tablespace_statistics.
Returned from
Handlerton::get_tablespace_statistics;
the shim copies each field into the matching ha_tablespace_statistics
slot. The five string fields (m_type, m_logfile_group_name,
m_row_format, m_status, m_extra) stay at their default-empty
values today — they need a separate dd::String_type setter that has
not been wired yet.
Implementations§
Source§impl TablespaceStatistics
impl TablespaceStatistics
Sourcepub const fn with_logfile_group_number(self, value: u64) -> Self
pub const fn with_logfile_group_number(self, value: u64) -> Self
Logfile group number — NDB only (m_logfile_group_number).
Sourcepub const fn with_free_extents(self, value: u64) -> Self
pub const fn with_free_extents(self, value: u64) -> Self
Number of free extents (m_free_extents).
Sourcepub const fn with_total_extents(self, value: u64) -> Self
pub const fn with_total_extents(self, value: u64) -> Self
Total number of extents (m_total_extents).
Sourcepub const fn with_extent_size(self, value: u64) -> Self
pub const fn with_extent_size(self, value: u64) -> Self
Extent size in bytes (m_extent_size).
Sourcepub const fn with_initial_size(self, value: u64) -> Self
pub const fn with_initial_size(self, value: u64) -> Self
Initial tablespace size in bytes (m_initial_size).
Sourcepub const fn with_maximum_size(self, value: u64) -> Self
pub const fn with_maximum_size(self, value: u64) -> Self
Maximum tablespace size in bytes (m_maximum_size).
Sourcepub const fn with_autoextend_size(self, value: u64) -> Self
pub const fn with_autoextend_size(self, value: u64) -> Self
Auto-extend increment in bytes (m_autoextend_size).
Sourcepub const fn with_version(self, value: u64) -> Self
pub const fn with_version(self, value: u64) -> Self
Tablespace version — NDB only (m_version).
Sourcepub const fn with_data_free(self, value: u64) -> Self
pub const fn with_data_free(self, value: u64) -> Self
Reclaimable bytes — primarily InnoDB (m_data_free).
Sourcepub const fn logfile_group_number(&self) -> u64
pub const fn logfile_group_number(&self) -> u64
Logfile group number — NDB only.
Sourcepub const fn free_extents(&self) -> u64
pub const fn free_extents(&self) -> u64
Free-extent count.
Sourcepub const fn total_extents(&self) -> u64
pub const fn total_extents(&self) -> u64
Total-extent count.
Sourcepub const fn extent_size(&self) -> u64
pub const fn extent_size(&self) -> u64
Extent size in bytes.
Sourcepub const fn initial_size(&self) -> u64
pub const fn initial_size(&self) -> u64
Initial size in bytes.
Sourcepub const fn maximum_size(&self) -> u64
pub const fn maximum_size(&self) -> u64
Maximum size in bytes.
Sourcepub const fn autoextend_size(&self) -> u64
pub const fn autoextend_size(&self) -> u64
Auto-extend increment in bytes.
Trait Implementations§
Source§impl Clone for TablespaceStatistics
impl Clone for TablespaceStatistics
Source§fn clone(&self) -> TablespaceStatistics
fn clone(&self) -> TablespaceStatistics
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TablespaceStatistics
Source§impl Debug for TablespaceStatistics
impl Debug for TablespaceStatistics
Source§impl Default for TablespaceStatistics
impl Default for TablespaceStatistics
impl Eq for TablespaceStatistics
Source§impl PartialEq for TablespaceStatistics
impl PartialEq for TablespaceStatistics
Source§fn eq(&self, other: &TablespaceStatistics) -> bool
fn eq(&self, other: &TablespaceStatistics) -> bool
self and other values to be equal, and is used by ==.