pub struct Resource<T: Clone + 'static> { /* private fields */ }Expand description
Copy handle to a deferred value. Wraps an RwSignal whose slot
the worker thread writes into once the fetch completes; consumer
code reads through the accessors below.
Implementations§
Trait Implementations§
impl<T: Clone + 'static> Copy for Resource<T>
Auto Trait Implementations§
impl<T> Freeze for Resource<T>
impl<T> RefUnwindSafe for Resource<T>
impl<T> Send for Resource<T>
impl<T> Sync for Resource<T>
impl<T> Unpin for Resource<T>
impl<T> UnsafeUnpin for Resource<T>
impl<T> UnwindSafe for Resource<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