pub struct RedisConnection { /* private fields */ }Implementations§
Source§impl RedisConnection
impl RedisConnection
pub async fn connect(connection_string: &str) -> DatabaseResult<Self>
pub async fn execute(&self, _query: &str) -> DatabaseResult<Recordset>
pub async fn execute_command(&self, command: &str) -> DatabaseResult<u64>
pub async fn close(&mut self) -> DatabaseResult<()>
pub async fn is_connected(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RedisConnection
impl !RefUnwindSafe for RedisConnection
impl Send for RedisConnection
impl Sync for RedisConnection
impl Unpin for RedisConnection
impl !UnwindSafe for RedisConnection
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> 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 more