Struct twilight_cache_inmemory::Config [−][src]
pub struct Config { /* fields omitted */ }
Expand description
Configuration for an InMemoryCache
.
Implementations
Create a new default configuration.
Refer to individual getters for their defaults.
Returns an immutable reference to the message cache size.
Defaults to 100.
Returns a mutable reference to the message cache size.
Returns an immutable reference to the resource types enabled.
Defaults to all resource types.
Returns a mutable reference to the resource types enabled.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Config
impl UnwindSafe for Config
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more