pub struct Events { /* private fields */ }Expand description
A subscription to the bot’s events (Bot::events): events from the tick after it
was made, buffered until read. Dropping it unsubscribes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Events
impl Freeze for Events
impl Move for Events
impl RefUnwindSafe for Events
impl Send for Events
impl Sync for Events
impl Unpin for Events
impl UnsafeUnpin for Eventswhere
*const ArcInner<Mutex<Shared>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Shared>>>: UnsafeUnpin,
*const ArcInner<Mutex<SubState>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<SubState>>>: UnsafeUnpin,
impl UnwindSafe for Events
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