Struct redis_driver::HelloOptions
source · [−]pub struct HelloOptions { /* private fields */ }
Expand description
Options for the hello
command.
Implementations
sourceimpl HelloOptions
impl HelloOptions
pub fn new(protover: usize) -> Self
pub fn auth<U, P>(self, username: U, password: P) -> Selfwhere
U: Into<BulkString>,
P: Into<BulkString>,
pub fn set_name<C>(self, client_name: C) -> Selfwhere
C: Into<BulkString>,
Trait Implementations
sourceimpl Default for HelloOptions
impl Default for HelloOptions
sourcefn default() -> HelloOptions
fn default() -> HelloOptions
Returns the “default value” for a type. Read more
sourceimpl IntoArgs for HelloOptions
impl IntoArgs for HelloOptions
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Auto Trait Implementations
impl RefUnwindSafe for HelloOptions
impl Send for HelloOptions
impl Sync for HelloOptions
impl Unpin for HelloOptions
impl UnwindSafe for HelloOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more