pub struct State<S> {
pub state: Arc<S>,
}Expand description
State extractor, extract the state from BotContext. If the required state is not found, the handler will be skipped.
Fields§
§state: Arc<S>Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for State<S>
impl<S> RefUnwindSafe for State<S>where
S: RefUnwindSafe,
impl<S> Send for State<S>
impl<S> Sync for State<S>
impl<S> Unpin for State<S>
impl<S> UnwindSafe for State<S>where
S: RefUnwindSafe,
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