pub struct RustemonClientBuilder<T: CacheManager> { /* private fields */ }Expand description
Builder used to ease the configuration of RustemonClient.
Implementations§
Source§impl<T: CacheManager> RustemonClientBuilder<T>
impl<T: CacheManager> RustemonClientBuilder<T>
Sourcepub const fn with_mode(self, cache_mode: CacheMode) -> Self
pub const fn with_mode(self, cache_mode: CacheMode) -> Self
Configure the CacheMode of the builder. See CacheMode.
Sourcepub fn with_manager(self, manager: T) -> Self
pub fn with_manager(self, manager: T) -> Self
Configure the manager of the builder. See CacheManager.
Sourcepub const fn with_options(self, options: CacheOptions) -> Self
pub const fn with_options(self, options: CacheOptions) -> Self
Configure the cache options of the builder. See CacheOptions.
Sourcepub fn with_environment(self, environment: Environment) -> Self
pub fn with_environment(self, environment: Environment) -> Self
Configure the environment of the builder. See Environment.
Sourcepub fn try_build(self) -> Result<RustemonClient, Error>
pub fn try_build(self) -> Result<RustemonClient, Error>
Consumes the builder in order to create a RustemonClient.
Trait Implementations§
Source§impl Default for RustemonClientBuilder<MokaManager>
impl Default for RustemonClientBuilder<MokaManager>
Auto Trait Implementations§
impl<T> Freeze for RustemonClientBuilder<T>where
T: Freeze,
impl<T> !RefUnwindSafe for RustemonClientBuilder<T>
impl<T> Send for RustemonClientBuilder<T>
impl<T> Sync for RustemonClientBuilder<T>
impl<T> Unpin for RustemonClientBuilder<T>where
T: Unpin,
impl<T> !UnwindSafe for RustemonClientBuilder<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more