pub struct TransactionStatistics {
pub tx_id: u64,
pub is_active: bool,
pub state: String,
pub node_count: u64,
pub edge_count: u64,
pub free_space_offset: u64,
}Expand description
Transaction statistics for debugging and monitoring
Fields§
§tx_id: u64§is_active: bool§state: String§node_count: u64§edge_count: u64§free_space_offset: u64Implementations§
Source§impl TransactionStatistics
impl TransactionStatistics
Sourcepub fn is_transaction_in_progress(&self) -> bool
pub fn is_transaction_in_progress(&self) -> bool
Check if transaction is in progress
Sourcepub fn get_state_description(&self) -> &str
pub fn get_state_description(&self) -> &str
Get transaction state description
Trait Implementations§
Source§impl Clone for TransactionStatistics
impl Clone for TransactionStatistics
Source§fn clone(&self) -> TransactionStatistics
fn clone(&self) -> TransactionStatistics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TransactionStatistics
impl RefUnwindSafe for TransactionStatistics
impl Send for TransactionStatistics
impl Sync for TransactionStatistics
impl Unpin for TransactionStatistics
impl UnwindSafe for TransactionStatistics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more