Struct ntex_redis::RedisConnector [−][src]
pub struct RedisConnector<A, T> { /* fields omitted */ }Expand description
Redis connector
Implementations
Create new redis connector
impl<A, T> RedisConnector<A, T> where
A: Address + Clone,
T: Service<Connect<A>, Response = IoBoxed, Error = ConnectError>,
impl<A, T> RedisConnector<A, T> where
A: Address + Clone,
T: Service<Connect<A>, Response = IoBoxed, Error = ConnectError>,
Set memory pool.
Use specified memory pool for memory allocations. By default P7 memory pool is used.
pub fn connector<Io, U>(
self,
connector: U
) -> RedisConnector<A, impl Service<Connect<A>, Response = IoBoxed, Error = ConnectError>> where
U: Service<Connect<A>, Response = Io, Error = ConnectError>,
IoBoxed: From<Io>,
pub fn connector<Io, U>(
self,
connector: U
) -> RedisConnector<A, impl Service<Connect<A>, Response = IoBoxed, Error = ConnectError>> where
U: Service<Connect<A>, Response = Io, Error = ConnectError>,
IoBoxed: From<Io>,
Use custom connector
Connect to redis server and create shared client
Connect to redis server and create simple client
Auto Trait Implementations
impl<A, T> !RefUnwindSafe for RedisConnector<A, T>
impl<A, T> !Send for RedisConnector<A, T>
impl<A, T> !Sync for RedisConnector<A, T>
impl<A, T> Unpin for RedisConnector<A, T> where
A: Unpin,
T: Unpin,
impl<A, T> !UnwindSafe for RedisConnector<A, T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
