Struct dioxus_std::utils::rw::UseRw
source · pub struct UseRw<T> { /* private fields */ }Implementations§
source§impl<T> UseRw<T>
impl<T> UseRw<T>
pub fn read(&self) -> Result<RwLockReadGuard<'_, T>, UseRwError>
pub fn write(&self, new_value: T) -> Result<(), UseRwError>
pub fn needs_update(&self)
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for UseRw<T>
impl<T> Send for UseRw<T>
impl<T> Sync for UseRw<T>
impl<T> Unpin for UseRw<T>
impl<T> !UnwindSafe for UseRw<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