Struct dioxus_query::UseQueryClient
source · pub struct UseQueryClient<T, E, K> { /* private fields */ }Implementations§
source§impl<T: Clone + 'static, E: Clone + 'static, K: PartialEq + Clone + Eq + Hash + 'static> UseQueryClient<T, E, K>
impl<T: Clone + 'static, E: Clone + 'static, K: PartialEq + Clone + Eq + Hash + 'static> UseQueryClient<T, E, K>
sourcepub async fn invalidate_query(&self, key_to_invalidate: K)
pub async fn invalidate_query(&self, key_to_invalidate: K)
Invalidate a single query. It will run alone, after previous queries have finished.
sourcepub async fn invalidate_queries(&self, keys_to_invalidate: &[K])
pub async fn invalidate_queries(&self, keys_to_invalidate: &[K])
Invalidate a group of queries. They will all run concurrently, after previous queries have finished.
Trait Implementations§
Auto Trait Implementations§
impl<T, E, K> !RefUnwindSafe for UseQueryClient<T, E, K>
impl<T, E, K> !Send for UseQueryClient<T, E, K>
impl<T, E, K> !Sync for UseQueryClient<T, E, K>
impl<T, E, K> Unpin for UseQueryClient<T, E, K>
impl<T, E, K> !UnwindSafe for UseQueryClient<T, E, K>
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