Struct ntex_redis::RedisConnector [−][src]
pub struct RedisConnector<A, T> { /* fields omitted */ }
Expand description
Redis connector
Implementations
pub fn new(
address: A
) -> RedisConnector<A, impl Service<Request = Connect<A>, Response = IoBoxed, Error = ConnectError>>
pub fn new(
address: A
) -> RedisConnector<A, impl Service<Request = Connect<A>, Response = IoBoxed, Error = ConnectError>>
Create new redis connector
impl<A, T> RedisConnector<A, T> where
A: Address + Clone,
T: Service<Request = Connect<A>, Response = IoBoxed, Error = ConnectError>,
impl<A, T> RedisConnector<A, T> where
A: Address + Clone,
T: Service<Request = 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<U, F>(
self,
connector: U
) -> RedisConnector<A, impl Service<Request = Connect<A>, Response = IoBoxed, Error = ConnectError>> where
F: Filter,
U: Service<Request = Connect<A>, Response = Io<F>, Error = ConnectError>,
pub fn connector<U, F>(
self,
connector: U
) -> RedisConnector<A, impl Service<Request = Connect<A>, Response = IoBoxed, Error = ConnectError>> where
F: Filter,
U: Service<Request = Connect<A>, Response = Io<F>, Error = ConnectError>,
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