UpdateCache

Trait UpdateCache 

Source
pub trait UpdateCache {
    // Required method
    async fn update(
        &self,
        cache: &Cache,
    ) -> Result<(), Box<dyn Error + Send + Sync>>;
}

Required Methods§

Source

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl UpdateCache for Event

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for GuildCreate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for ChannelCreate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for ChannelDelete

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for ChannelPinsUpdate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for ChannelUpdate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for GuildDelete

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for GuildEmojisUpdate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for GuildScheduledEventCreate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for GuildScheduledEventDelete

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for GuildScheduledEventUpdate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for GuildScheduledEventUserAdd

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for GuildScheduledEventUserRemove

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for GuildStickersUpdate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for GuildUpdate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for IntegrationCreate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for IntegrationDelete

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for IntegrationUpdate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for InteractionCreate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for MemberAdd

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for MemberChunk

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for MemberRemove

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for MemberUpdate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for MessageCreate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for MessageDelete

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for MessageDeleteBulk

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for MessageUpdate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for PresenceUpdate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for ReactionAdd

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for ReactionRemove

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for ReactionRemoveAll

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for ReactionRemoveEmoji

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for Ready

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for RoleCreate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for RoleDelete

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for RoleUpdate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for StageInstanceCreate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for StageInstanceDelete

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for StageInstanceUpdate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for ThreadCreate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for ThreadDelete

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for ThreadListSync

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for ThreadUpdate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for UnavailableGuild

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for UserUpdate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Source§

impl UpdateCache for VoiceStateUpdate

Source§

async fn update( &self, cache: &Cache, ) -> Result<(), Box<dyn Error + Send + Sync>>

Implementors§