pub struct ArcRwLockKeyPathChain<Root, RwLockValue, InnerValue, SubValue, F, G>{ /* private fields */ }Expand description
A composed keypath chain through Arc<RwLock
§Example
// Functional style: compose first, then apply container at get()
ContainerTest::rwlock_data_r()
.then_arc_rwlock_at_kp(SomeStruct::data_r())
.get(&container, |value| println!("Value: {}", value));Implementations§
Source§impl<Root, RwLockValue, InnerValue, SubValue, F, G> ArcRwLockKeyPathChain<Root, RwLockValue, InnerValue, SubValue, F, G>where
F: for<'r> Fn(&'r Root) -> &'r RwLockValue,
G: for<'r> Fn(&'r InnerValue) -> &'r SubValue,
RwLockValue: Borrow<Arc<RwLock<InnerValue>>>,
impl<Root, RwLockValue, InnerValue, SubValue, F, G> ArcRwLockKeyPathChain<Root, RwLockValue, InnerValue, SubValue, F, G>where
F: for<'r> Fn(&'r Root) -> &'r RwLockValue,
G: for<'r> Fn(&'r InnerValue) -> &'r SubValue,
RwLockValue: Borrow<Arc<RwLock<InnerValue>>>,
Auto Trait Implementations§
impl<Root, RwLockValue, InnerValue, SubValue, F, G> Freeze for ArcRwLockKeyPathChain<Root, RwLockValue, InnerValue, SubValue, F, G>
impl<Root, RwLockValue, InnerValue, SubValue, F, G> RefUnwindSafe for ArcRwLockKeyPathChain<Root, RwLockValue, InnerValue, SubValue, F, G>where
F: RefUnwindSafe,
G: RefUnwindSafe,
Root: RefUnwindSafe,
RwLockValue: RefUnwindSafe,
InnerValue: RefUnwindSafe,
SubValue: RefUnwindSafe,
impl<Root, RwLockValue, InnerValue, SubValue, F, G> Send for ArcRwLockKeyPathChain<Root, RwLockValue, InnerValue, SubValue, F, G>
impl<Root, RwLockValue, InnerValue, SubValue, F, G> Sync for ArcRwLockKeyPathChain<Root, RwLockValue, InnerValue, SubValue, F, G>
impl<Root, RwLockValue, InnerValue, SubValue, F, G> Unpin for ArcRwLockKeyPathChain<Root, RwLockValue, InnerValue, SubValue, F, G>
impl<Root, RwLockValue, InnerValue, SubValue, F, G> UnwindSafe for ArcRwLockKeyPathChain<Root, RwLockValue, InnerValue, SubValue, F, G>where
F: UnwindSafe,
G: UnwindSafe,
Root: UnwindSafe,
RwLockValue: UnwindSafe,
InnerValue: UnwindSafe,
SubValue: UnwindSafe,
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