pub enum ProviderEither {
Redis(Box<Redis>),
}Variants§
Implementations§
Source§impl ProviderEither
impl ProviderEither
pub fn pub_sub( self, ) -> Result<Box<dyn ConnectablePubSubProvider<Channels = SubscriptionChannel> + Send + Sync>, &'static str>
pub fn connectable( self, ) -> Result<Box<dyn ConnectableProvider + Send + Sync>, &'static str>
pub fn fifo( self, ) -> Result<Box<dyn ConnectableFifoProvider + Send + Sync>, &'static str>
pub fn cache( self, ) -> Result<Box<dyn ConnectableCacheProvider + Send + Sync>, &'static str>
Auto Trait Implementations§
impl Freeze for ProviderEither
impl RefUnwindSafe for ProviderEither
impl Send for ProviderEither
impl Sync for ProviderEither
impl Unpin for ProviderEither
impl UnsafeUnpin for ProviderEither
impl UnwindSafe for ProviderEither
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