pub struct BotContext { /* private fields */ }Expand description
What a bot gets from the swarm when it starts.
Implementations§
Source§impl BotContext
impl BotContext
Sourcepub fn is_stopped(&self) -> bool
pub fn is_stopped(&self) -> bool
True once the bot was asked to stop (BotHandle::stop, Swarm::stop_all,
Swarm::shutdown or dropping the swarm).
Trait Implementations§
Auto Trait Implementations§
impl Forget for BotContext
impl Freeze for BotContextwhere
*const ArcInner<Signal> is !null: Freeze,
PhantomData<ArcInner<Signal>>: Freeze,
*const ArcInner<Shared> is !null: Freeze,
PhantomData<ArcInner<Shared>>: Freeze,
impl Move for BotContext
impl RefUnwindSafe for BotContextwhere
Atomic<usize>: RefUnwindSafe,
Atomic<bool>: RefUnwindSafe,
Notify: RefUnwindSafe,
Mutex<Option<Instant>>: RefUnwindSafe,
Mutex<usize>: RefUnwindSafe,
Condvar: RefUnwindSafe,
Atomic<u64>: RefUnwindSafe,
impl Send for BotContext
impl Sync for BotContext
impl Unpin for BotContext
impl UnsafeUnpin for BotContextwhere
*const ArcInner<Signal> is !null: UnsafeUnpin,
PhantomData<ArcInner<Signal>>: UnsafeUnpin,
*const ArcInner<Shared> is !null: UnsafeUnpin,
PhantomData<ArcInner<Shared>>: UnsafeUnpin,
impl UnwindSafe for BotContext
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