Lines Matching refs:RwLock
88 pub struct RwLock<T: ?Sized> { struct
108 check_send::<RwLock<u32>>(); in bounds() argument
109 check_sync::<RwLock<u32>>(); in bounds()
110 check_unpin::<RwLock<u32>>(); in bounds()
136 let rwlock = Arc::new(RwLock::new(0)); in bounds()
146 unsafe impl<T> Send for RwLock<T> where T: ?Sized + Send {} implementation
147 unsafe impl<T> Sync for RwLock<T> where T: ?Sized + Send + Sync {} implementation
190 impl<T: ?Sized> RwLock<T> { implementation
200 pub fn new(value: T) -> RwLock<T> in new()
204 RwLock { in new()
225 pub fn with_max_readers(value: T, max_reads: u32) -> RwLock<T> in with_max_readers()
234 RwLock { in with_max_readers()
252 pub const fn const_new(value: T) -> RwLock<T> in const_new()
256 RwLock { in const_new()
275 pub const fn const_with_max_readers(value: T, mut max_reads: u32) -> RwLock<T> in const_with_max_readers()
280 RwLock { in const_with_max_readers()
690 impl<T> From<T> for RwLock<T> { implementation
696 impl<T: ?Sized> Default for RwLock<T> implementation