Skip to main content

TablespaceStatistics

Struct TablespaceStatistics 

Source
#[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

Source

pub const fn new() -> Self

Construct a snapshot with every numeric field zeroed.

Source

pub const fn with_id(self, value: u64) -> Self

Tablespace identifier (m_id).

Source

pub const fn with_logfile_group_number(self, value: u64) -> Self

Logfile group number — NDB only (m_logfile_group_number).

Source

pub const fn with_free_extents(self, value: u64) -> Self

Number of free extents (m_free_extents).

Source

pub const fn with_total_extents(self, value: u64) -> Self

Total number of extents (m_total_extents).

Source

pub const fn with_extent_size(self, value: u64) -> Self

Extent size in bytes (m_extent_size).

Source

pub const fn with_initial_size(self, value: u64) -> Self

Initial tablespace size in bytes (m_initial_size).

Source

pub const fn with_maximum_size(self, value: u64) -> Self

Maximum tablespace size in bytes (m_maximum_size).

Source

pub const fn with_autoextend_size(self, value: u64) -> Self

Auto-extend increment in bytes (m_autoextend_size).

Source

pub const fn with_version(self, value: u64) -> Self

Tablespace version — NDB only (m_version).

Source

pub const fn with_data_free(self, value: u64) -> Self

Reclaimable bytes — primarily InnoDB (m_data_free).

Source

pub const fn id(&self) -> u64

Tablespace identifier.

Source

pub const fn logfile_group_number(&self) -> u64

Logfile group number — NDB only.

Source

pub const fn free_extents(&self) -> u64

Free-extent count.

Source

pub const fn total_extents(&self) -> u64

Total-extent count.

Source

pub const fn extent_size(&self) -> u64

Extent size in bytes.

Source

pub const fn initial_size(&self) -> u64

Initial size in bytes.

Source

pub const fn maximum_size(&self) -> u64

Maximum size in bytes.

Source

pub const fn autoextend_size(&self) -> u64

Auto-extend increment in bytes.

Source

pub const fn version(&self) -> u64

Tablespace version (NDB only).

Source

pub const fn data_free(&self) -> u64

Reclaimable bytes (InnoDB).

Trait Implementations§

Source§

impl Clone for TablespaceStatistics

Source§

fn clone(&self) -> TablespaceStatistics

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for TablespaceStatistics

Source§

impl Debug for TablespaceStatistics

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TablespaceStatistics

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for TablespaceStatistics

Source§

impl PartialEq for TablespaceStatistics

Source§

fn eq(&self, other: &TablespaceStatistics) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for TablespaceStatistics

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more