Struct leptos::SuspenseContext
source · pub struct SuspenseContext {
pub pending_resources: ReadSignal<usize>,
/* private fields */
}
Expand description
Fields§
§pending_resources: ReadSignal<usize>
The number of resources that are currently pending.
Implementations§
source§impl SuspenseContext
impl SuspenseContext
sourcepub fn has_local_only(&self) -> bool
pub fn has_local_only(&self) -> bool
Whether the suspense contains local resources at this moment, and therefore can’t be
source§impl SuspenseContext
impl SuspenseContext
sourcepub fn new(cx: Scope) -> SuspenseContext
pub fn new(cx: Scope) -> SuspenseContext
Creates an empty suspense context.
sourcepub fn increment(&self, serializable: bool)
pub fn increment(&self, serializable: bool)
Notifies the suspense context that a new resource is now pending.
Trait Implementations§
source§impl Clone for SuspenseContext
impl Clone for SuspenseContext
source§fn clone(&self) -> SuspenseContext
fn clone(&self) -> SuspenseContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SuspenseContext
impl Debug for SuspenseContext
source§impl Hash for SuspenseContext
impl Hash for SuspenseContext
source§impl PartialEq<SuspenseContext> for SuspenseContext
impl PartialEq<SuspenseContext> for SuspenseContext
source§fn eq(&self, other: &SuspenseContext) -> bool
fn eq(&self, other: &SuspenseContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SuspenseContext
impl Eq for SuspenseContext
Auto Trait Implementations§
impl RefUnwindSafe for SuspenseContext
impl Send for SuspenseContext
impl Sync for SuspenseContext
impl Unpin for SuspenseContext
impl UnwindSafe for SuspenseContext
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
source§impl<T> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere T: Hash + ?Sized,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.