Enum robespierre_models::events::ServerToClientEvent[][src]

pub enum ServerToClientEvent {
Show 24 variants Error { error: String, }, Authenticated, Pong { time: u32, }, Ready { event: ReadyEvent, }, Message { message: Message, }, MessageUpdate { id: MessageId, channel: ChannelId, data: PartialMessage, }, MessageDelete { id: MessageId, channel: ChannelId, }, ChannelCreate { channel: Channel, }, ChannelUpdate { id: ChannelId, data: PartialChannel, clear: Option<ChannelField>, }, ChannelDelete { id: ChannelId, }, ChannelGroupJoin { id: ChannelId, user: UserId, }, ChannelGroupLeave { id: ChannelId, user: UserId, }, ChannelStartTyping { id: ChannelId, user: UserId, }, ChannelStopTyping { id: ChannelId, user: UserId, }, ChannelAck { id: ChannelId, user: UserId, message_id: MessageId, }, ServerUpdate { id: ServerId, data: PartialServer, clear: Option<ServerField>, }, ServerDelete { id: ServerId, }, ServerMemberUpdate { id: MemberId, data: PartialMember, clear: Option<MemberField>, }, ServerMemberJoin { id: ServerId, user: UserId, }, ServerMemberLeave { id: ServerId, user: UserId, }, ServerRoleUpdate { id: ServerId, role_id: RoleId, data: PartialRole, clear: Option<RoleField>, }, ServerRoleDelete { id: ServerId, role_id: RoleId, }, UserUpdate { id: UserId, data: PartialUser, clear: Option<UserField>, }, UserRelationship { id: UserId, user: UserId, status: RelationshipStatus, },
}
Expand description

Any message that the server can send to the client.

Variants

Error

Fields of Error

error: String
Authenticated
Pong

Fields of Pong

time: u32
Ready

Fields of Ready

event: ReadyEvent
Message

Fields of Message

message: Message
MessageUpdate

Fields of MessageUpdate

id: MessageIdchannel: ChannelIddata: PartialMessage
MessageDelete

Fields of MessageDelete

id: MessageIdchannel: ChannelId
ChannelCreate

Fields of ChannelCreate

channel: Channel
ChannelUpdate

Fields of ChannelUpdate

id: ChannelIddata: PartialChannelclear: Option<ChannelField>
ChannelDelete

Fields of ChannelDelete

id: ChannelId
ChannelGroupJoin

Fields of ChannelGroupJoin

id: ChannelIduser: UserId
ChannelGroupLeave

Fields of ChannelGroupLeave

id: ChannelIduser: UserId
ChannelStartTyping

Fields of ChannelStartTyping

id: ChannelIduser: UserId
ChannelStopTyping

Fields of ChannelStopTyping

id: ChannelIduser: UserId
ChannelAck

Fields of ChannelAck

id: ChannelIduser: UserIdmessage_id: MessageId
ServerUpdate

Fields of ServerUpdate

id: ServerIddata: PartialServerclear: Option<ServerField>
ServerDelete

Fields of ServerDelete

id: ServerId
ServerMemberUpdate

Fields of ServerMemberUpdate

id: MemberIddata: PartialMemberclear: Option<MemberField>
ServerMemberJoin

Fields of ServerMemberJoin

id: ServerIduser: UserId
ServerMemberLeave

Fields of ServerMemberLeave

id: ServerIduser: UserId
ServerRoleUpdate

Fields of ServerRoleUpdate

id: ServerIdrole_id: RoleIddata: PartialRoleclear: Option<RoleField>
ServerRoleDelete

Fields of ServerRoleDelete

id: ServerIdrole_id: RoleId
UserUpdate

Fields of UserUpdate

id: UserIddata: PartialUserclear: Option<UserField>
UserRelationship

Fields of UserRelationship

id: UserIduser: UserIdstatus: RelationshipStatus

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.