Struct SuspenseTaskGuard
pub struct SuspenseTaskGuard { /* private fields */ }
Expand description
A guard that keeps a suspense scope suspended until it is dropped.
Implementations§
§impl SuspenseTaskGuard
impl SuspenseTaskGuard
pub fn new() -> SuspenseTaskGuard
pub fn new() -> SuspenseTaskGuard
Creates a new suspense task guard. This will suspend the current suspense scope until this guard is dropped.
pub fn from_scope(scope: SuspenseScope) -> SuspenseTaskGuard
pub fn from_scope(scope: SuspenseScope) -> SuspenseTaskGuard
Create a new suspense task guard from a suspense scope.
Trait Implementations§
§impl Debug for SuspenseTaskGuard
impl Debug for SuspenseTaskGuard
§impl Default for SuspenseTaskGuard
impl Default for SuspenseTaskGuard
§fn default() -> SuspenseTaskGuard
fn default() -> SuspenseTaskGuard
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SuspenseTaskGuard
impl !RefUnwindSafe for SuspenseTaskGuard
impl !Send for SuspenseTaskGuard
impl !Sync for SuspenseTaskGuard
impl Unpin for SuspenseTaskGuard
impl !UnwindSafe for SuspenseTaskGuard
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