pub async fn clear(&self) -> Result<()> {
        self.0.channels_guild.lock().await.clear();
        self.0.current_user.lock().await.take();
        self.0.emojis.lock().await.clear();
        self.0.guilds.lock().await.clear();
        self.0.presences.lock().await.clear();
        self.0.roles.lock().await.clear();
        self.0.users.lock().await.clear();
        self.0.voice_states.lock().await.clear();

        Ok(())
    }
/// Clears the entire state of the Cache. This is equal to creating a new
/// empty Cache.
Clears the entire state of the Cache. This is equal to creating a new
empty Cache.
Clears the entire state of the Cache . This is equal to creating a new empty Cache .
pub async fn clear(&self) -> Result<()> {
        self.0.channels_guild.lock().await.clear();
        self.0.current_user.lock().await.take();
        self.0.emojis.lock().await.clear();
        self.0.guilds.lock().await.clear();
        self.0.presences.lock().await.clear();
        self.0.roles.lock().await.clear();
        self.0.users.lock().await.clear();
        self.0.voice_states.lock().await.clear();
        Ok(())
    }
pub async fn clear ( & self ) -> Result < ( ) > { self . 0 . channels_guild . lock ( ) . await . clear ( ) ; self . 0 . current_user . lock ( ) . await . take ( ) ; self . 0 . emojis . lock ( ) . await . clear ( ) ; self . 0 . guilds . lock ( ) . await . clear ( ) ; self . 0 . presences . lock ( ) . await . clear ( ) ; self . 0 . roles . lock ( ) . await . clear ( ) ; self . 0 . users . lock ( ) . await . clear ( ) ; self . 0 . voice_states . lock ( ) . await . clear ( ) ; Ok ( ( ) ) }
Clears the entire state of the Cache.
Clears the entire state of the Cache .
&self
&self