Struct redis_swapplex::EnvConnection
source · pub struct EnvConnection;Expand description
Default env-configured Redis connection manager
Trait Implementations§
source§impl ConnectionManagerContext for EnvConnection
impl ConnectionManagerContext for EnvConnection
type ConnectionInfo = RedisDB<EnvConnection>
fn connection_manager() -> &'static ConnectionManager<RedisDB<EnvConnection>>
fn state_cache( ) -> &'static LocalKey<RefCell<Cache<&'static ArcSwapOption<ConnectionState>, Option<Arc<ConnectionState>>>>>
fn get_connection() -> ManagedConnection<Self>
fn client() -> &'static RedisResult<Client>
fn get_db() -> i64
fn with_state<T>(with_fn: fn(_: &Option<Arc<ConnectionState>>) -> T) -> T
source§impl ServiceURL for EnvConnection
impl ServiceURL for EnvConnection
fn service_url() -> Result<Url, ParseError>
Auto Trait Implementations§
impl Freeze for EnvConnection
impl RefUnwindSafe for EnvConnection
impl Send for EnvConnection
impl Sync for EnvConnection
impl Unpin for EnvConnection
impl UnwindSafe for EnvConnection
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