pub struct RedisFactorData(/* private fields */);Trait Implementations§
Source§impl HasData for RedisFactorData
impl HasData for RedisFactorData
Source§impl HostConnectionWithStore for RedisFactorData
impl HostConnectionWithStore for RedisFactorData
Source§async fn open<T: Send>(
accessor: &Accessor<T, Self>,
address: String,
) -> Result<Resource<Connection>, Error>
async fn open<T: Send>( accessor: &Accessor<T, Self>, address: String, ) -> Result<Resource<Connection>, Error>
Open a connection to the Redis instance at
address.Source§async fn publish<T: Send>(
accessor: &Accessor<T, Self>,
connection: Resource<Connection>,
channel: String,
payload: Payload,
) -> Result<(), Error>
async fn publish<T: Send>( accessor: &Accessor<T, Self>, connection: Resource<Connection>, channel: String, payload: Payload, ) -> Result<(), Error>
Publish a Redis message to the specified channel.
Source§async fn get<T: Send>(
accessor: &Accessor<T, Self>,
connection: Resource<Connection>,
key: String,
) -> Result<Option<Payload>, Error>
async fn get<T: Send>( accessor: &Accessor<T, Self>, connection: Resource<Connection>, key: String, ) -> Result<Option<Payload>, Error>
Get the value of a key.
Source§async fn set<T: Send>(
accessor: &Accessor<T, Self>,
connection: Resource<Connection>,
key: String,
value: Payload,
) -> Result<(), Error>
async fn set<T: Send>( accessor: &Accessor<T, Self>, connection: Resource<Connection>, key: String, value: Payload, ) -> Result<(), Error>
Set key to value. Read more
Source§async fn incr<T: Send>(
accessor: &Accessor<T, Self>,
connection: Resource<Connection>,
key: String,
) -> Result<i64, Error>
async fn incr<T: Send>( accessor: &Accessor<T, Self>, connection: Resource<Connection>, key: String, ) -> Result<i64, Error>
Increments the number stored at key by one. Read more
Source§async fn del<T: Send>(
accessor: &Accessor<T, Self>,
connection: Resource<Connection>,
keys: Vec<String>,
) -> Result<u32, Error>
async fn del<T: Send>( accessor: &Accessor<T, Self>, connection: Resource<Connection>, keys: Vec<String>, ) -> Result<u32, Error>
Removes the specified keys. Read more
Source§async fn sadd<T: Send>(
accessor: &Accessor<T, Self>,
connection: Resource<Connection>,
key: String,
values: Vec<String>,
) -> Result<u32, Error>
async fn sadd<T: Send>( accessor: &Accessor<T, Self>, connection: Resource<Connection>, key: String, values: Vec<String>, ) -> Result<u32, Error>
Add the specified
values to the set named key, returning the number of newly-added values.Source§async fn smembers<T: Send>(
accessor: &Accessor<T, Self>,
connection: Resource<Connection>,
key: String,
) -> Result<Vec<String>, Error>
async fn smembers<T: Send>( accessor: &Accessor<T, Self>, connection: Resource<Connection>, key: String, ) -> Result<Vec<String>, Error>
Retrieve the contents of the set named
key.Auto Trait Implementations§
impl Freeze for RedisFactorData
impl RefUnwindSafe for RedisFactorData
impl Send for RedisFactorData
impl Sync for RedisFactorData
impl Unpin for RedisFactorData
impl UnsafeUnpin for RedisFactorData
impl UnwindSafe for RedisFactorData
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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