[−][src]Struct rocks::thread_status::ThreadStatus
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]ⓘ
[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
impl RefUnwindSafe for ThreadStatus
[src]
impl !Send for ThreadStatus
[src]
impl !Sync for ThreadStatus
[src]
impl Unpin for ThreadStatus
[src]
impl UnwindSafe for ThreadStatus
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,