pub struct SimpleBot {
pub heartbeat_interval: u64,
pub secret: QQSecret,
}Fields§
§heartbeat_interval: u64§secret: QQSecretTrait Implementations§
Source§impl QQBotProtocol for SimpleBot
impl QQBotProtocol for SimpleBot
fn build_bot_token(&self) -> String
fn build_request(&self, method: Method, url: Url) -> RequestBuilder
fn on_connected<'life0, 'async_trait>(
&'life0 mut self,
event: HeartbeatEvent,
) -> Pin<Box<dyn Future<Output = QQResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_message<'life0, 'async_trait>(
&'life0 mut self,
event: MessageEvent,
) -> Pin<Box<dyn Future<Output = QQResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn subscription(&self) -> Subscription
fn on_login_success<'life0, 'async_trait>(
&'life0 mut self,
event: LoginEvent,
) -> Pin<Box<dyn Future<Output = QQResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_login_failure<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = QQResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_heartbeat<'life0, 'async_trait>(
&'life0 mut self,
heartbeat_id: u32,
) -> Pin<Box<dyn Future<Output = QQResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_emoji<'life0, 'async_trait>(
&'life0 mut self,
event: EmojiEvent,
) -> Pin<Box<dyn Future<Output = QQResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_save<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = QQResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for SimpleBot
impl RefUnwindSafe for SimpleBot
impl Send for SimpleBot
impl Sync for SimpleBot
impl Unpin for SimpleBot
impl UnsafeUnpin for SimpleBot
impl UnwindSafe for SimpleBot
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