pub struct Scope { /* private fields */ }Implementations§
Source§impl Scope
impl Scope
pub fn new() -> Self
pub async fn run<T>( self, f: impl Future<Output = Result<T, Error>>, ) -> Result<T, Error>
pub fn keyed_sync<F, R>(key: u32, f: F) -> Rwhere
F: FnOnce() -> R,
pub fn keyed<T, F>(key: u32, f: F) -> impl Future<Output = T>where
F: Future<Output = T>,
pub fn key() -> Option<u32>
pub fn spawn_local<F>(future: F) -> JoinHandle<F::Output>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scope
impl !RefUnwindSafe for Scope
impl !Send for Scope
impl !Sync for Scope
impl Unpin for Scope
impl !UnwindSafe for Scope
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