pub struct BotState<T>where
T: Sync,{
pub state: T,
}
Expand description
Contains the state of the bot. Currently only contains a user defined object, but will be augmented with other fields
Fields§
§state: T
User defined state
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for BotState<T>where
T: Freeze,
impl<T> RefUnwindSafe for BotState<T>where
T: RefUnwindSafe,
impl<T> Send for BotState<T>where
T: Send,
impl<T> Sync for BotState<T>
impl<T> Unpin for BotState<T>where
T: Unpin,
impl<T> UnwindSafe for BotState<T>where
T: UnwindSafe,
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