#[repr(C)]
pub struct PSI_table_locker_state { pub m_flags: uint, pub m_io_operation: Type, pub m_table: *mut PSI_table, pub m_table_share: *mut PSI_table_share, pub m_thread: *mut PSI_thread, pub m_timer_start: ulonglong, pub m_timer: Option<unsafe extern "C" fn() -> ulonglong>, pub m_wait: *mut c_void, pub m_index: uint, }
Expand description

State data storage for @c start_table_io_wait_v1_t, @c start_table_lock_wait_v1_t. This structure provide temporary storage to a table locker. The content of this structure is considered opaque, the fields are only hints of what an implementation of the psi interface can use. This memory is provided by the instrumented code for performance reasons. @sa start_table_io_wait_v1_t @sa start_table_lock_wait_v1_t

Fields§

§m_flags: uint

Internal state.

§m_io_operation: Type

Current io operation.

§m_table: *mut PSI_table

Current table handle.

§m_table_share: *mut PSI_table_share

Current table share.

§m_thread: *mut PSI_thread

Current thread.

§m_timer_start: ulonglong

Timer start.

§m_timer: Option<unsafe extern "C" fn() -> ulonglong>

Timer function.

§m_wait: *mut c_void

Internal data.

§m_index: uint

Implementation specific. For table io, the table io index. For table lock, the lock type.

Trait Implementations§

source§

impl Debug for PSI_table_locker_state

source§

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

Formats the value using the given formatter. Read more

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.