pub struct Client {
    pub online: AtomicBool,
    pub heartbeat_enabled: AtomicBool,
    pub account_info: RwLock<AccountInfo>,
    pub address: RwLock<AddressInfo>,
    pub online_clients: RwLock<Vec<OtherClientInfo>>,
    pub last_message_time: AtomicI64,
    pub start_time: i32,
    /* private fields */
}

Fields

online: AtomicBoolheartbeat_enabled: AtomicBoolaccount_info: RwLock<AccountInfo>address: RwLock<AddressInfo>online_clients: RwLock<Vec<OtherClientInfo>>last_message_time: AtomicI64start_time: i32

Implementations

获取好友请求

处理好友申请

获取好友列表 第一个参数offset,从0开始;第二个参数count,150,另外两个都是0

删除好友

Args
  • del_uin 为要删除的好友QQid
Return
  • 如果删除好友成功 返回 Ok(())
  • 如果删除好友失败 返回 Err(RQError::Other)
  • 其他异常 返回 Err(..)

刷新好友列表

好友列表-添加好友分组

好友列表-重命名好友分组

好友列表-删除好友分组

好友戳一戳

发送好友消息

发送好友语音

分享好友音乐

标记私聊消息已读 TODO 待测试

获取好友个性签名

获取所有进群请求

处理加群申请

获取群列表 第一个参数offset,从0开始;第二个参数count,150,另外两个都是0

发送群消息

发送群语音

发送群成员临时消息

获取群成员信息

批量获取群信息

获取群信息

刷新群列表

获取群成员列表

标记群消息已读

群禁言 (解除禁言 duration=0)

全员禁言

修改群名称

设置群公告

设置群管理员

flag: true 设置管理员 false 取消管理员

群戳一戳

群踢人

获取群 @全体成员 剩余次数

设置群头衔

获取自己的匿名信息(用于发送群消息)

分享群音乐

修改群名片

撤回群消息

上传群图片

上传群音频 codec: 0-amr, 1-silk

上传群短视频 参数:群号,视频数据,封面数据 TODO 未来可能会改成输入 std::io::Read

设置群精华消息

发送群消息 仅在多张图片时需要,发送文字不需要

发送转发消息

获取群主/管理员列表

群聊打卡

登录相关

二维码登录 - 获取二维码

二维码登录 - 查询二维码状态

二维码登录 - 登录 ( 可能还需要 device_lock_login )

密码登录 - 提交密码md5

密码登录 - 请求短信验证码

密码登录 - 提交短信验证码

密码登录 - 提交滑块ticket

设备锁登录 - 二维码、密码登录都需要

token 登录

换 token,使用后需要重新 register

注册客户端,登录后必须注册

API

设置在线状态 TODO net_type

修改签名

修改个人资料

刷新客户端状态

获取通过安全验证的设备

文本翻译

发送消息

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more