pub struct WsClient(/* private fields */);
Implementations§
Source§impl WsClient
impl WsClient
pub async fn send_chunk_guild( &mut self, guild_id: GuildId, shard_info: &ShardInfo, limit: Option<u16>, presences: bool, filter: ChunkGuildFilter, nonce: Option<&str>, ) -> Result<()>
pub async fn send_heartbeat( &mut self, shard_info: &ShardInfo, seq: Option<u64>, ) -> Result<()>
pub async fn send_identify( &mut self, shard: &ShardInfo, token: &str, intents: GatewayIntents, presence: &PresenceData, ) -> Result<()>
pub async fn send_presence_update( &mut self, shard_info: &ShardInfo, presence: &PresenceData, ) -> Result<()>
pub async fn send_resume( &mut self, shard_info: &ShardInfo, session_id: &str, seq: u64, token: &str, ) -> Result<()>
Auto Trait Implementations§
impl !Freeze for WsClient
impl !RefUnwindSafe for WsClient
impl Send for WsClient
impl Sync for WsClient
impl Unpin for WsClient
impl !UnwindSafe for WsClient
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