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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.