std::sync::nonpoison::Condvar
pub struct Condvar
- Kind
- struct
- Module
std::sync::nonpoison
Source: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
The entries of std::sync::nonpoison in the Rust reference. This page has 54 cards.
pub struct Condvar
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new() -> Condvar
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn notify_all(&self)
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn notify_one(&self)
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn wait<T>(&self, guard: &mut MutexGuard<'_, T>)
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn wait_timeout<T>( &self, guard: &mut MutexGuard<'_, T>, dur: Duration, ) -> WaitTimeoutResult
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn wait_timeout_while<T, F>( &self, guard: &mut MutexGuard<'_, T>, dur: Duration, condition: F, ) -> WaitTimeoutResult where F: FnMut(&mut T) -> bool
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn wait_while<T, F>(&self, guard: &mut MutexGuard<'_, T>, condition: F) where F: FnMut(&mut T) -> bool
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct MappedMutexGuard<'a, T: ?Sized + 'a>
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn filter_map<U, F>( orig: Self, f: F, ) -> Result<MappedMutexGuard<'a, U>, Self> where F: FnOnce(&mut T) -> Option<&mut U>, U: ?Sized
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn map<U, F>(orig: Self, f: F) -> MappedMutexGuard<'a, U> where F: FnOnce(&mut T) -> &mut U, U: ?Sized
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct MappedRwLockReadGuard<'rwlock, T: ?Sized + 'rwlock>
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn filter_map<U, F>( orig: Self, f: F, ) -> Result<MappedRwLockReadGuard<'rwlock, U>, Self> where F: FnOnce(&T) -> Option<&U>, U: ?Sized
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn map<U, F>(orig: Self, f: F) -> MappedRwLockReadGuard<'rwlock, U> where F: FnOnce(&T) -> &U, U: ?Sized
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct MappedRwLockWriteGuard<'rwlock, T: ?Sized + 'rwlock>
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn filter_map<U, F>( orig: Self, f: F, ) -> Result<MappedRwLockWriteGuard<'rwlock, U>, Self> where F: FnOnce(&mut T) -> Option<&mut U>, U: ?Sized
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn map<U, F>(orig: Self, f: F) -> MappedRwLockWriteGuard<'rwlock, U> where F: FnOnce(&mut T) -> &mut U, U: ?Sized
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Mutex<T: ?Sized>
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn data_ptr(&self) -> *mut T
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_cloned(&self) -> T where T: Clone
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_mut(&mut self) -> &mut T
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_inner(self) -> T where T: Sized
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn lock(&self) -> MutexGuard<'_, T>
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new(t: T) -> Mutex<T>
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn replace(&self, value: T) -> T
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn set(&self, value: T)
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_lock(&self) -> TryLockResult<MutexGuard<'_, T>>
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn with_mut<F, R>(&self, f: F) -> R where F: FnOnce(&mut T) -> R
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct MutexGuard<'a, T: ?Sized + 'a>
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn filter_map<U, F>( orig: Self, f: F, ) -> Result<MappedMutexGuard<'a, U>, Self> where F: FnOnce(&mut T) -> Option<&mut U>, U: ?Sized
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn map<U, F>(orig: Self, f: F) -> MappedMutexGuard<'a, U> where F: FnOnce(&mut T) -> &mut U, U: ?Sized
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct RwLock<T: ?Sized>
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn data_ptr(&self) -> *mut T
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_cloned(&self) -> T where T: Clone
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_mut(&mut self) -> &mut T
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_inner(self) -> T where T: Sized
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new(t: T) -> RwLock<T>
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn read(&self) -> RwLockReadGuard<'_, T>
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn replace(&self, value: T) -> T
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn set(&self, value: T)
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_read(&self) -> TryLockResult<RwLockReadGuard<'_, T>>
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_write(&self) -> TryLockResult<RwLockWriteGuard<'_, T>>
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn with<F, R>(&self, f: F) -> R where F: FnOnce(&T) -> R
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn with_mut<F, R>(&self, f: F) -> R where F: FnOnce(&mut T) -> R
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn write(&self) -> RwLockWriteGuard<'_, T>
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct RwLockReadGuard<'rwlock, T: ?Sized + 'rwlock>
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn filter_map<U, F>( orig: Self, f: F, ) -> Result<MappedRwLockReadGuard<'rwlock, U>, Self> where F: FnOnce(&T) -> Option<&U>, U: ?Sized
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn map<U, F>(orig: Self, f: F) -> MappedRwLockReadGuard<'rwlock, U> where F: FnOnce(&T) -> &U, U: ?Sized
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct RwLockWriteGuard<'rwlock, T: ?Sized + 'rwlock>
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn downgrade(s: Self) -> RwLockReadGuard<'rwlock, T>
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn filter_map<U, F>( orig: Self, f: F, ) -> Result<MappedRwLockWriteGuard<'rwlock, U>, Self> where F: FnOnce(&mut T) -> Option<&mut U>, U: ?Sized
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn map<U, F>(orig: Self, f: F) -> MappedRwLockWriteGuard<'rwlock, U> where F: FnOnce(&mut T) -> &mut U, U: ?Sized
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type TryLockResult<Guard> = Result<Guard, WouldBlock>;
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct WouldBlock
std::sync::nonpoisonSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.