pub enum ChatRoomEventData {
Online(Vec<OnlineInfo>),
DiscussChanged(String),
Revoke(String),
Msg(ChatRoomMsg),
Barrager(BarragerMsg),
RedPacket(ChatRoomMsg<Value>),
RedPacketStatus(RedPacketStatusMsg),
Music(ChatRoomMsg<Value>),
Weather(ChatRoomMsg<Value>),
Custom(CustomMsg),
}Expand description
聊天室事件数据(包装所有消息类型)
Variants§
Online(Vec<OnlineInfo>)
在线用户
DiscussChanged(String)
话题修改
Revoke(String)
消息撤回
Msg(ChatRoomMsg)
普通消息
Barrager(BarragerMsg)
弹幕消息
RedPacket(ChatRoomMsg<Value>)
红包消息
RedPacketStatus(RedPacketStatusMsg)
红包状态
Music(ChatRoomMsg<Value>)
音乐消息
Weather(ChatRoomMsg<Value>)
天气消息
Custom(CustomMsg)
进出场消息
Trait Implementations§
Source§impl Clone for ChatRoomEventData
impl Clone for ChatRoomEventData
Source§fn clone(&self) -> ChatRoomEventData
fn clone(&self) -> ChatRoomEventData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ChatRoomEventData
impl RefUnwindSafe for ChatRoomEventData
impl Send for ChatRoomEventData
impl Sync for ChatRoomEventData
impl Unpin for ChatRoomEventData
impl UnsafeUnpin for ChatRoomEventData
impl UnwindSafe for ChatRoomEventData
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