Struct twilight_cache_inmemory::InMemoryCacheBuilder [−][src]
pub struct InMemoryCacheBuilder(_);
Expand description
Builder to configure and construct an InMemoryCache
.
Implementations
Creates a builder to configure and construct an InMemoryCache
.
Consume the builder, returning a configured cache.
Sets the list of resource types for the cache to handle.
Defaults to all types.
Sets the number of messages to cache per channel.
Defaults to 100.
Trait Implementations
Returns the “default value” for a type. 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
impl RefUnwindSafe for InMemoryCacheBuilder
impl Send for InMemoryCacheBuilder
impl Sync for InMemoryCacheBuilder
impl Unpin for InMemoryCacheBuilder
impl UnwindSafe for InMemoryCacheBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more