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<Request = Connect<A>, Error = ConnectError>,
T::Response: AsyncRead + AsyncWrite + Unpin + 'static,
impl<A, T> RedisConnector<A, T> where
A: Address + Clone,
T: Service<Request = Connect<A>, Error = ConnectError>,
T::Response: AsyncRead + AsyncWrite + Unpin + 'static,
Set memory pool.
Use specified memory pool for memory allocations. By default P7 memory pool is used.
pub fn connector<U>(self, connector: U) -> RedisConnector<A, U> where
U: Service<Request = Connect<A>, Error = ConnectError>,
U::Response: AsyncRead + AsyncWrite + Unpin + 'static,
pub fn connector<U>(self, connector: U) -> RedisConnector<A, U> where
U: Service<Request = Connect<A>, Error = ConnectError>,
U::Response: AsyncRead + AsyncWrite + Unpin + 'static,
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. 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