pub struct RedisBackendConfig { /* private fields */ }
Implementations§
Source§impl RedisBackendConfig
impl RedisBackendConfig
pub fn new(redis_url: impl Into<String>) -> Self
pub fn key_prefix(self, prefix: impl Into<String>) -> Self
pub fn lock_timeout(self, timeout: Duration) -> Self
pub fn lock_renewal_interval(self, interval: Duration) -> Self
pub fn follower_check_interval(self, interval: Duration) -> Self
pub fn sync_interval(self, interval: Duration) -> Self
pub fn follower_idle_sleep(self, interval: Duration) -> Self
pub fn instance_id(self, id: impl Into<String>) -> Self
pub fn resolve(self) -> ResolvedRedisBackendConfig
Trait Implementations§
Source§impl Clone for RedisBackendConfig
impl Clone for RedisBackendConfig
Source§fn clone(&self) -> RedisBackendConfig
fn clone(&self) -> RedisBackendConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RedisBackendConfig
impl RefUnwindSafe for RedisBackendConfig
impl Send for RedisBackendConfig
impl Sync for RedisBackendConfig
impl Unpin for RedisBackendConfig
impl UnwindSafe for RedisBackendConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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