pub struct RedisComponent { /* private fields */ }Implementations§
Source§impl RedisComponent
impl RedisComponent
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new RedisComponent without global config defaults.
Endpoint configs will fall back to hardcoded defaults via resolve_defaults().
Sourcepub fn with_config(config: RedisConfig) -> Self
pub fn with_config(config: RedisConfig) -> Self
Create a RedisComponent with global config defaults.
These will be applied to endpoint configs before resolve_defaults().
Sourcepub fn with_optional_config(config: Option<RedisConfig>) -> Self
pub fn with_optional_config(config: Option<RedisConfig>) -> Self
Create a RedisComponent with optional global config defaults.
If None, behaves like new() (uses hardcoded defaults only).
Trait Implementations§
Source§impl Component for RedisComponent
impl Component for RedisComponent
Auto Trait Implementations§
impl Freeze for RedisComponent
impl RefUnwindSafe for RedisComponent
impl Send for RedisComponent
impl Sync for RedisComponent
impl Unpin for RedisComponent
impl UnsafeUnpin for RedisComponent
impl UnwindSafe for RedisComponent
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