pub struct ICoWWeakRead<'weak, ITEM: Sized>(/* private fields */);Expand description
An instance emmited by the ICoWWeak::aquire which allows to read the item for
a 'weak period of time.
§Fields
-
0- the reference to the stored inner value (read only). -
1- the flag which indicates that the0was reloaded or not. -
2- phantom to preventSend.
Implementations§
Source§impl<'weak, ITEM: Sized + Debug> ICoWWeakRead<'weak, ITEM>
impl<'weak, ITEM: Sized + Debug> ICoWWeakRead<'weak, ITEM>
Sourcepub fn item_updated(&self) -> bool
pub fn item_updated(&self) -> bool
Tells if item was reloaded. If true is returned, the
item was loaded from base and not from the cache.
Trait Implementations§
Auto Trait Implementations§
impl<'weak, ITEM> Freeze for ICoWWeakRead<'weak, ITEM>
impl<'weak, ITEM> RefUnwindSafe for ICoWWeakRead<'weak, ITEM>where
ITEM: RefUnwindSafe,
impl<'weak, ITEM> Send for ICoWWeakRead<'weak, ITEM>
impl<'weak, ITEM> Sync for ICoWWeakRead<'weak, ITEM>
impl<'weak, ITEM> Unpin for ICoWWeakRead<'weak, ITEM>
impl<'weak, ITEM> UnwindSafe for ICoWWeakRead<'weak, ITEM>where
ITEM: RefUnwindSafe,
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