[−][src]Struct twilight_cache_inmemory::config::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]
fn clone(&self) -> InMemoryConfigBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InMemoryConfigBuilder
[src]
impl Default for InMemoryConfigBuilder
[src]
fn default() -> InMemoryConfigBuilder
[src]
impl From<InMemoryConfigBuilder> for InMemoryConfig
[src]
fn from(builder: InMemoryConfigBuilder) -> Self
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,