[][src]Struct rocks::thread_status::ThreadStatus

#[repr(C)]pub struct ThreadStatus { /* fields omitted */ }

A structure that describes the current status of a thread. The status of active threads can be fetched using rocksdb::GetThreadList().

Implementations

impl ThreadStatus[src]

pub fn thread_id(&self) -> u64[src]

An unique ID for the thread.

pub fn thread_type(&self) -> ThreadType[src]

The type of the thread, it could be HIGH_PRIORITY, LOW_PRIORITY, and USER

pub fn db_name(&self) -> &str[src]

The name of the DB instance where the thread is currently involved with. It would be set to empty string if the thread does not involve in any DB operation.

pub fn cf_name(&self) -> &str[src]

The name of the column family where the thread is currently It would be set to empty string if the thread does not involve in any column family.

pub fn operation_type(&self) -> OperationType[src]

The operation (high-level action) that the current thread is involved.

pub fn op_elapsed_micros(&self) -> u64[src]

The elapsed time of the current thread operation in microseconds.

pub fn operation_stage(&self) -> OperationStage[src]

An integer showing the current stage where the thread is involved in the current operation.

pub fn op_properties(&self) -> &[u64]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

A list of properties that describe some details about the current operation. Same field in op_properties[] might have different meanings for different operations.

pub fn state_type(&self) -> StateType[src]

The state (lower-level action) that the current thread is involved.

Trait Implementations

impl Debug for ThreadStatus[src]

impl Drop for ThreadStatus[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.