pub struct QQBotWebsocket<T>where
T: QQBotProtocol,{ /* private fields */ }Implementations§
Source§impl<T> QQBotWebsocket<T>where
T: QQBotProtocol,
impl<T> QQBotWebsocket<T>where
T: QQBotProtocol,
pub async fn link(bot: T) -> QQResult<Self>
pub async fn relink(&mut self) -> QQResult
pub async fn run(&mut self) -> QQResult
pub async fn next(&mut self) -> Option<Result<Message, Error>>
pub async fn dispatch(&mut self, event: Result<Message, Error>) -> QQResult
pub async fn send(&mut self, operator: &QQBotOperation) -> QQResult<()>
pub async fn send_heartbeat(&mut self) -> QQResult<()>
pub async fn send_identify(&mut self) -> QQResult<()>
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for QQBotWebsocket<T>
impl<T> !RefUnwindSafe for QQBotWebsocket<T>
impl<T> Send for QQBotWebsocket<T>
impl<T> Sync for QQBotWebsocket<T>where
T: Sync,
impl<T> Unpin for QQBotWebsocket<T>where
T: Unpin,
impl<T> !UnwindSafe for QQBotWebsocket<T>
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