pub struct BotHandle<T> { /* private fields */ }Expand description
A bot in a Swarm: stop it, wait for its result. Dropping the handle does not stop
the bot. Works with any runtime (or none, see join_blocking),
also after the swarm is gone.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for BotHandle<T>
impl<T> !UnwindSafe for BotHandle<T>
impl<T> Forget for BotHandle<T>
impl<T> Freeze for BotHandle<T>
impl<T> Move for BotHandle<T>
impl<T> Send for BotHandle<T>
impl<T> Sync for BotHandle<T>
impl<T> Unpin for BotHandle<T>
impl<T> UnsafeUnpin for BotHandle<T>where
*const ArcInner<Signal> is !null: UnsafeUnpin,
PhantomData<ArcInner<Signal>>: UnsafeUnpin,
*const ArcInner<Inner<Result<T, BotError>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner<Result<T, BotError>>>>: UnsafeUnpin,
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