pub struct Dispatcher<T: Bot> { /* private fields */ }
Implementations§
Source§impl<T: Bot> Dispatcher<T>
impl<T: Bot> Dispatcher<T>
pub fn new(core: T) -> Self
pub async fn dispatch_event(&self, event: Value)
Auto Trait Implementations§
impl<T> Freeze for Dispatcher<T>where
T: Freeze,
impl<T> RefUnwindSafe for Dispatcher<T>where
T: RefUnwindSafe,
impl<T> Send for Dispatcher<T>
impl<T> Sync for Dispatcher<T>
impl<T> Unpin for Dispatcher<T>where
T: Unpin,
impl<T> UnwindSafe for Dispatcher<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