pub trait UpdateCache: Sealed {
    // Provided method
    fn update(&self, cache: &InMemoryCache) { ... }
}
Expand description

Implemented for dispatch events.

This trait is sealed and cannot be implemented.

Provided Methods§

source

fn update(&self, cache: &InMemoryCache)

Updates the cache based on data contained within an event.

Implementations on Foreign Types§

source§

impl UpdateCache for IntegrationDelete

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for RoleDelete

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for RoleCreate

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for GuildEmojisUpdate

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for ChannelCreate

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for InteractionCreate

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for Event

source§

impl UpdateCache for ChannelUpdate

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for StageInstanceCreate

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for UserUpdate

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for ReactionAdd

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for ReactionRemoveAll

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for StageInstanceDelete

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for ThreadCreate

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for ReactionRemoveEmoji

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for Ready

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for VoiceStateUpdate

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for ChannelDelete

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for ThreadDelete

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for MessageDeleteBulk

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for MemberRemove

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for GuildUpdate

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for IntegrationCreate

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for IntegrationUpdate

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for RoleUpdate

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for MessageCreate

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for ReactionRemove

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for ChannelPinsUpdate

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for UnavailableGuild

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for PresenceUpdate

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for GuildStickersUpdate

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for ThreadListSync

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for MemberAdd

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for GuildDelete

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for ThreadUpdate

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for MemberUpdate

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for MessageDelete

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for StageInstanceUpdate

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for MessageUpdate

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for MemberChunk

source§

fn update(&self, cache: &InMemoryCache)

source§

impl UpdateCache for GuildCreate

source§

fn update(&self, cache: &InMemoryCache)

Implementors§