pub struct RedisPlugin;Trait Implementations§
Source§impl Clone for RedisPlugin
impl Clone for RedisPlugin
Source§fn clone(&self) -> RedisPlugin
fn clone(&self) -> RedisPlugin
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 moreSource§impl DatabaseConnectionPlugin for RedisPlugin
impl DatabaseConnectionPlugin for RedisPlugin
type InstanceConfig = RedisInstanceConfig
type AutoCreation = RedisAutoCreation
type Connection = Arc<RwLock<Connection>>
type ConnectionCache = RwLock<HashMap<String, ConnectionCache<Arc<RwLock<Connection>>>>>
fn plugin_type() -> PluginType
async fn connection_db<I>( instance_name: I, _schema: Option<DatabaseSchema>, ) -> Result<Self::Connection, String>
async fn get_connection<I>( instance_name: I, schema: Option<DatabaseSchema>, ) -> Result<Self::Connection, String>
async fn perform_auto_creation( instance: &Self::InstanceConfig, schema: Option<DatabaseSchema>, ) -> Result<AutoCreationResult, AutoCreationError>
Source§impl Debug for RedisPlugin
impl Debug for RedisPlugin
Source§impl Default for RedisPlugin
impl Default for RedisPlugin
Source§fn default() -> RedisPlugin
fn default() -> RedisPlugin
Returns the “default value” for a type. Read more
Source§impl GetOrInit for RedisPlugin
impl GetOrInit for RedisPlugin
type Instance = RwLock<HashMap<String, ConnectionCache<Arc<RwLock<Connection>>>>>
fn get_or_init() -> &'static Self::Instance
impl Copy for RedisPlugin
Auto Trait Implementations§
impl Freeze for RedisPlugin
impl RefUnwindSafe for RedisPlugin
impl Send for RedisPlugin
impl Sync for RedisPlugin
impl Unpin for RedisPlugin
impl UnsafeUnpin for RedisPlugin
impl UnwindSafe for RedisPlugin
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more