pub struct Command<'a> { /* private fields */ }
Expand description
Struct for defining commands manually. If you want to run multiple commands in a pipeline, use CommandList
.
§Example
use darkredis::{Command, Connection};
let command = Command::new("SET").arg(b"singular-key").arg(b"some-value");
let result = connection.run_command(command).await.unwrap();
assert_eq!(result, Value::Ok);
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Command<'a>
impl<'a> RefUnwindSafe for Command<'a>
impl<'a> Send for Command<'a>
impl<'a> Sync for Command<'a>
impl<'a> Unpin for Command<'a>
impl<'a> UnwindSafe for Command<'a>
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