pub struct RedisZSetDriver<C>where
C: ConnectionLike,{ /* private fields */ }
Implementations§
Source§impl<C> RedisZSetDriver<C>where
C: ConnectionLike,
impl<C> RedisZSetDriver<C>where
C: ConnectionLike,
Trait Implementations§
Source§impl<C> Clone for RedisZSetDriver<C>where
C: ConnectionLike + Clone,
impl<C> Clone for RedisZSetDriver<C>where
C: ConnectionLike + Clone,
Source§fn clone(&self) -> RedisZSetDriver<C>
fn clone(&self) -> RedisZSetDriver<C>
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<C> Debug for RedisZSetDriver<C>where
C: ConnectionLike,
impl<C> Debug for RedisZSetDriver<C>where
C: ConnectionLike,
Source§impl<C> Driver for RedisZSetDriver<C>
impl<C> Driver for RedisZSetDriver<C>
Source§fn get_nodes<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_nodes<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the list of nodes from the redis server, use ZRANGEBYSCORE
to get the latest nodes
Source§fn start<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start a routine to send the heartbeat to the redis server
type Error = Error
Source§impl<C> Drop for RedisZSetDriver<C>where
C: ConnectionLike,
impl<C> Drop for RedisZSetDriver<C>where
C: ConnectionLike,
Auto Trait Implementations§
impl<C> Freeze for RedisZSetDriver<C>where
C: Freeze,
impl<C> RefUnwindSafe for RedisZSetDriver<C>where
C: RefUnwindSafe,
impl<C> Send for RedisZSetDriver<C>where
C: Send,
impl<C> Sync for RedisZSetDriver<C>where
C: Sync,
impl<C> Unpin for RedisZSetDriver<C>where
C: Unpin,
impl<C> UnwindSafe for RedisZSetDriver<C>where
C: UnwindSafe,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request