pub struct RwLockInstance {
pub ptr: usize,
pub type_name: String,
pub size: usize,
pub read_count: usize,
pub has_write_lock: bool,
pub waiting_readers: usize,
pub waiting_writers: usize,
pub total_read_acquisitions: u64,
pub total_write_acquisitions: u64,
}Expand description
RwLock instance
Fields§
§ptr: usizePointer to the instance
type_name: StringType name of the instance
size: usizeSize of the instance
read_count: usizeNumber of read locks
has_write_lock: boolWhether the rwlock has a write lock
waiting_readers: usizeNumber of waiting readers
waiting_writers: usizeNumber of waiting writers
total_read_acquisitions: u64Total number of read acquisitions
total_write_acquisitions: u64Total number of write acquisitions
Trait Implementations§
Source§impl Clone for RwLockInstance
impl Clone for RwLockInstance
Source§fn clone(&self) -> RwLockInstance
fn clone(&self) -> RwLockInstance
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 moreSource§impl Debug for RwLockInstance
impl Debug for RwLockInstance
Source§impl<'de> Deserialize<'de> for RwLockInstance
impl<'de> Deserialize<'de> for RwLockInstance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RwLockInstance
impl RefUnwindSafe for RwLockInstance
impl Send for RwLockInstance
impl Sync for RwLockInstance
impl Unpin for RwLockInstance
impl UnwindSafe for RwLockInstance
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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