pub enum ChatEvent {
FriendMessage {
sender: SteamID,
message: String,
chat_entry_type: EChatEntryType,
timestamp: u32,
ordinal: u32,
from_limited_account: bool,
low_priority: bool,
},
FriendMessageEcho {
receiver: SteamID,
message: String,
timestamp: u32,
ordinal: u32,
},
FriendTyping {
sender: SteamID,
},
FriendTypingEcho {
receiver: SteamID,
},
FriendLeftConversation {
sender: SteamID,
},
FriendLeftConversationEcho {
receiver: SteamID,
},
ChatMessage {
chat_group_id: u64,
chat_id: u64,
sender: SteamID,
message: String,
timestamp: u32,
ordinal: u32,
},
ChatMemberStateChange {
chat_group_id: u64,
steam_id: SteamID,
change: i32,
},
ChatRoomGroupRoomsChange {
chat_group_id: u64,
default_chat_id: u64,
chat_rooms: Vec<ChatRoomState>,
},
ChatMessagesModified {
chat_group_id: u64,
chat_id: u64,
messages: Vec<ModifiedChatMessage>,
},
ChatRoomGroupHeaderStateChange {
chat_group_id: u64,
header_state: ChatRoomGroupHeaderState,
},
OfflineMessagesFetched {
friend_id: SteamID,
messages: Vec<HistoryMessage>,
},
}Expand description
Chat and messaging events.
Variants§
FriendMessage
Received a friend message.
Fields
§
chat_entry_type: EChatEntryTypeFriendMessageEcho
Echo of a message we sent (received when local_echo is true).
FriendTyping
Friend typing indicator.
FriendTypingEcho
Echo of our own typing indicator.
FriendLeftConversation
Friend left the conversation.
FriendLeftConversationEcho
Echo of us leaving the conversation.
ChatMessage
Received a group chat message.
ChatMemberStateChange
A member’s state in a chat room group changed.
ChatRoomGroupRoomsChange
Rooms in a chat room group changed.
ChatMessagesModified
Chat messages in a room were modified (e.g. deleted).
ChatRoomGroupHeaderStateChange
A chat room group’s header state changed.
OfflineMessagesFetched
Fetched offline messages history.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChatEvent
impl RefUnwindSafe for ChatEvent
impl Send for ChatEvent
impl Sync for ChatEvent
impl Unpin for ChatEvent
impl UnsafeUnpin for ChatEvent
impl UnwindSafe for ChatEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more