pub struct Readable<T> { /* private fields */ }Expand description
A checked immutable state view or cached selection.
Implementations§
Source§impl<T: 'static> Readable<T>
impl<T: 'static> Readable<T>
Sourcepub fn value(&self) -> Result<Rc<T>>
pub fn value(&self) -> Result<Rc<T>>
Read the current snapshot while its owner and consuming reference remain valid.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Readable<T>
impl<T> !Send for Readable<T>
impl<T> !Sync for Readable<T>
impl<T> !UnwindSafe for Readable<T>
impl<T> Forget for Readable<T>
impl<T> Freeze for Readable<T>
impl<T> Move for Readable<T>
impl<T> Unpin for Readable<T>
impl<T> UnsafeUnpin for Readable<T>
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