#[non_exhaustive]pub struct DashMapBackend;Expand description
The default Backend: every resource is a DashMapStore.
discord.js counterpart: none (discord.js caches in Collections).
§Examples
use djs_cache::{Cache, CacheConfig, DashMapBackend};
// The same as `Cache::with_config(CacheConfig::default())`.
let cache = Cache::with_backend(CacheConfig::default(), DashMapBackend::new());Implementations§
Trait Implementations§
Source§impl Backend for DashMapBackend
impl Backend for DashMapBackend
Source§impl Clone for DashMapBackend
impl Clone for DashMapBackend
impl Copy for DashMapBackend
Source§impl Debug for DashMapBackend
impl Debug for DashMapBackend
Auto Trait Implementations§
impl Freeze for DashMapBackend
impl RefUnwindSafe for DashMapBackend
impl Send for DashMapBackend
impl Sync for DashMapBackend
impl Unpin for DashMapBackend
impl UnsafeUnpin for DashMapBackend
impl UnwindSafe for DashMapBackend
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