std::sync::Arc
pub struct Arc<T, A = Global>
- Kind
- struct
- Module
std::sync- Since
- 1.0.0
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 in the Rust reference. This page has 187 cards.
pub struct Arc<T, A = Global>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn allocator(this: &Arc<T, A>) -> &A
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn as_ptr(this: &Arc<T, A>) -> *const T
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn assume_init(self) -> Arc<T, A>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn clone_from_ref(value: &T) -> Arc<T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn clone_from_ref_in(value: &T, alloc: A) -> Arc<T, A>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn decrement_strong_count(ptr: *const T)
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn decrement_strong_count_in(ptr: *const T, alloc: A)
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn downcast<T>(self) -> Result<Arc<T, A>, Arc<dyn Any + Sync + Send, A>> where T: Any + Send + Sync
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn downcast_unchecked<T>(self) -> Arc<T, A> where T: Any + Send + Sync
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn downgrade(this: &Arc<T, A>) -> Weak<T, A> where A: Clone
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn from_raw(ptr: *const T) -> Arc<T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn from_raw_in(ptr: *const T, alloc: A) -> Arc<T, A>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_mut(this: &mut Arc<T, A>) -> Option<&mut T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn get_mut_unchecked(this: &mut Arc<T, A>) -> &mut T
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn increment_strong_count(ptr: *const T)
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn increment_strong_count_in(ptr: *const T, alloc: A) where A: Clone
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_array<const N: usize>(self) -> Result<Arc<[T; N], A>, Arc<[T], A>>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_inner(this: Arc<T, A>) -> Option<T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_raw(this: Arc<T>) -> *const T
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_raw_with_allocator(this: Arc<T, A>) -> (*const T, A)
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_unique(this: &Arc<T, A>) -> bool
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn make_mut(this: &mut Arc<T, A>) -> &mut T
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn map<U>(this: Arc<T>, f: impl FnOnce(&T) -> U) -> Arc<U>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new(data: T) -> Arc<T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_cyclic<F>(data_fn: F) -> Arc<T> where F: FnOnce(&Weak<T>) -> T
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_cyclic_in<F>(data_fn: F, alloc: A) -> Arc<T, A> where F: FnOnce(&Weak<T, A>) -> T
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_in(data: T, alloc: A) -> Arc<T, A>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_uninit() -> Arc<MaybeUninit<T>>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_uninit_in(alloc: A) -> Arc<MaybeUninit<T>, A>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_uninit_slice(len: usize) -> Arc<[MaybeUninit<T>]>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_uninit_slice_in(len: usize, alloc: A) -> Arc<[MaybeUninit<T>], A>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_zeroed() -> Arc<MaybeUninit<T>>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_zeroed_in(alloc: A) -> Arc<MaybeUninit<T>, A>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_zeroed_slice(len: usize) -> Arc<[MaybeUninit<T>]>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_zeroed_slice_in(len: usize, alloc: A) -> Arc<[MaybeUninit<T>], A>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn pin(data: T) -> Pin<Arc<T>>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn pin_in(data: T, alloc: A) -> Pin<Arc<T, A>> where A: 'static
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn ptr_eq(this: &Arc<T, A>, other: &Arc<T, A>) -> bool
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn strong_count(this: &Arc<T, A>) -> usize
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_clone_from_ref(value: &T) -> Result<Arc<T>, AllocError>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_clone_from_ref_in( value: &T, alloc: A, ) -> Result<Arc<T, A>, AllocError>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_map<R>( this: Arc<T>, f: impl FnOnce(&T) -> R, ) -> <<R as Try>::Residual as Residual<Arc<<R as Try>::Output>>>::TryType where R: Try, <R as Try>::Residual: Residual<Arc<<R as Try>::Output>>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new(data: T) -> Result<Arc<T>, AllocError>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_in(data: T, alloc: A) -> Result<Arc<T, A>, AllocError>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_uninit() -> Result<Arc<MaybeUninit<T>>, AllocError>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_uninit_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_zeroed() -> Result<Arc<MaybeUninit<T>>, AllocError>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_zeroed_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_pin(data: T) -> Result<Pin<Arc<T>>, AllocError>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_pin_in(data: T, alloc: A) -> Result<Pin<Arc<T, A>>, AllocError> where A: 'static
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_unwrap(this: Arc<T, A>) -> Result<T, Arc<T, A>>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn unwrap_or_clone(this: Arc<T, A>) -> T
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn weak_count(this: &Arc<T, A>) -> usize
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Barrier
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new(n: usize) -> Barrier
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn wait(&self) -> BarrierWaitResult
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct BarrierWaitResult(/* private fields */)
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_leader(&self) -> bool
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Condvar
std::syncSource: 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::syncSource: 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::syncSource: 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::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn wait<'a, T>( &self, guard: MutexGuard<'a, T>, ) -> LockResult<MutexGuard<'a, T>>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn wait_timeout<'a, T>( &self, guard: MutexGuard<'a, T>, dur: Duration, ) -> LockResult<(MutexGuard<'a, T>, WaitTimeoutResult)>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn wait_timeout_ms<'a, T>( &self, guard: MutexGuard<'a, T>, ms: u32, ) -> LockResult<(MutexGuard<'a, T>, bool)>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn wait_timeout_while<'a, T, F>( &self, guard: MutexGuard<'a, T>, dur: Duration, condition: F, ) -> LockResult<(MutexGuard<'a, T>, WaitTimeoutResult)> where F: FnMut(&mut T) -> bool
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn wait_while<'a, T, F>( &self, guard: MutexGuard<'a, T>, condition: F, ) -> LockResult<MutexGuard<'a, T>> where F: FnMut(&mut T) -> bool
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct LazyLock<T, F = fn() -> T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn force(this: &LazyLock<T, F>) -> &T
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn force_mut(this: &mut LazyLock<T, F>) -> &mut T
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get(this: &LazyLock<T, F>) -> Option<&T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_mut(this: &mut LazyLock<T, F>) -> Option<&mut T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_inner(this: Self) -> Result<T, F>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new(f: F) -> LazyLock<T, F>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type LockResult<T> = Result<T, PoisonError<T>>;
std::syncSource: 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::syncSource: 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::syncSource: 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::syncSource: 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::syncSource: 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::syncSource: 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::syncSource: 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::syncSource: 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::syncSource: 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::syncSource: 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::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn clear_poison(&self)
std::syncSource: 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::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_cloned(&self) -> Result<T, PoisonError<()>> where T: Clone
std::syncSource: 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) -> LockResult<&mut T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_inner(self) -> LockResult<T> where T: Sized
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_poisoned(&self) -> bool
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn lock(&self) -> LockResult<MutexGuard<'_, T>>
std::syncSource: 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::syncSource: 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) -> LockResult<T>
std::syncSource: 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) -> Result<(), PoisonError<T>>
std::syncSource: 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::syncSource: 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::syncSource: 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::syncSource: 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::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Once
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn call_once<F>(&self, f: F) where F: FnOnce()
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn call_once_force<F>(&self, f: F) where F: FnOnce(&OnceState)
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_completed(&self) -> bool
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new() -> Once
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn wait(&self)
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn wait_force(&self)
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const ONCE_INIT: Once;
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct OnceLock<T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get(&self) -> Option<&T>
std::syncSource: 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) -> Option<&mut T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_mut_or_init<F>(&mut self, f: F) -> &mut T where F: FnOnce() -> T
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_mut_or_try_init<F, E>(&mut self, f: F) -> Result<&mut T, E> where F: FnOnce() -> Result<T, E>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_or_init<F>(&self, f: F) -> &T where F: FnOnce() -> T
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_or_try_init<F, E>(&self, f: F) -> Result<&T, E> where F: FnOnce() -> Result<T, E>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_inner(self) -> Option<T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new() -> OnceLock<T>
std::syncSource: 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) -> Result<(), T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn take(&mut self) -> Option<T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_insert(&self, value: T) -> Result<&T, (&T, T)>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn wait(&self) -> &T
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct OnceState
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_poisoned(&self) -> bool
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct PoisonError<T>
std::syncSource: 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::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_ref(&self) -> &T
std::syncSource: 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
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new(data: T) -> PoisonError<T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct ReentrantLock<T: ?Sized>
std::syncSource: 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) -> *const T
std::syncSource: 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::syncSource: 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
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn lock(&self) -> ReentrantLockGuard<'_, T>
std::syncSource: 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) -> ReentrantLock<T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct ReentrantLockGuard<'a, T: ?Sized + 'a>
std::syncSource: 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::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn clear_poison(&self)
std::syncSource: 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::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_cloned(&self) -> Result<T, PoisonError<()>> where T: Clone
std::syncSource: 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) -> LockResult<&mut T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_inner(self) -> LockResult<T> where T: Sized
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_poisoned(&self) -> bool
std::syncSource: 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::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn read(&self) -> LockResult<RwLockReadGuard<'_, T>>
std::syncSource: 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) -> LockResult<T>
std::syncSource: 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) -> Result<(), PoisonError<T>>
std::syncSource: 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::syncSource: 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::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn write(&self) -> LockResult<RwLockWriteGuard<'_, T>>
std::syncSource: 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::syncSource: 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::syncSource: 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::syncSource: 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::syncSource: 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::syncSource: 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::syncSource: 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::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct SyncView<T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_pin_mut(self: Pin<&mut SyncView<T>>) -> Pin<&mut T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_pin_ref(self: Pin<&SyncView<T>>) -> Pin<&T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_mut(r: &mut T) -> &mut SyncView<T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_pin_mut(r: Pin<&mut T>) -> Pin<&mut SyncView<T>>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn into_inner(self) -> T
std::syncSource: 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) -> SyncView<T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub enum TryLockError<T>
std::syncSource: 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, TryLockError<Guard>>;
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct UniqueArc<T, A = Global>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn downgrade(this: &UniqueArc<T, A>) -> Weak<T, A>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_arc(this: UniqueArc<T, A>) -> Arc<T, A>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn map<U>(this: UniqueArc<T>, f: impl FnOnce(T) -> U) -> UniqueArc<U>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new(value: T) -> UniqueArc<T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_in(data: T, alloc: A) -> UniqueArc<T, A>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_map<R>( this: UniqueArc<T>, f: impl FnOnce(T) -> R, ) -> <<R as Try>::Residual as Residual<UniqueArc<<R as Try>::Output>>>::TryType where R: Try, <R as Try>::Residual: Residual<UniqueArc<<R as Try>::Output>>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct WaitTimeoutResult(/* private fields */)
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn timed_out(&self) -> bool
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Weak<T, A = Global>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn allocator(&self) -> &A
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn as_ptr(&self) -> *const T
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn from_raw(ptr: *const T) -> Weak<T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn from_raw_in(ptr: *const T, alloc: A) -> Weak<T, A>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_raw(self) -> *const T
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_raw_with_allocator(self) -> (*const T, A)
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new() -> Weak<T>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_in(alloc: A) -> Weak<T, A>
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn ptr_eq(&self, other: &Weak<T, A>) -> bool
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn strong_count(&self) -> usize
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn upgrade(&self) -> Option<Arc<T, A>> where A: Clone
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn weak_count(&self) -> usize
std::syncSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.