[][src]Struct twilight_cache_inmemory::config::InMemoryConfigBuilder

pub struct InMemoryConfigBuilder(_);

Implementations

impl InMemoryConfigBuilder[src]

pub fn new() -> Self[src]

Creates a new, default builder for a InMemoryConfig.

pub fn build(self) -> InMemoryConfig[src]

Consumes the builder, returning the built configuration.

pub fn event_types(self, event_types: EventType) -> Self[src]

Sets the list of event types for the cache to handle.

Defaults to all types.

pub fn message_cache_size(self, message_cache_size: usize) -> Self[src]

Sets the number of messages to cache per channel.

Defaults to 100.

Trait Implementations

impl Clone for InMemoryConfigBuilder[src]

impl Debug for InMemoryConfigBuilder[src]

impl Default for InMemoryConfigBuilder[src]

impl From<InMemoryConfigBuilder> for InMemoryConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for InMemoryConfigBuilder

impl Send for InMemoryConfigBuilder

impl Sync for InMemoryConfigBuilder

impl Unpin for InMemoryConfigBuilder

impl UnwindSafe for InMemoryConfigBuilder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.