Struct redis_driver::ClientKillOptions
source · [−]pub struct ClientKillOptions { /* private fields */ }
Expand description
Options for the client-kill
command.
Implementations
sourceimpl ClientKillOptions
impl ClientKillOptions
pub fn id(self, client_id: i64) -> Self
pub fn client_type(self, client_type: ClientType) -> Self
pub fn user<U: Into<BulkString>>(self, username: U) -> Self
sourcepub fn addr<A: Into<BulkString>>(self, addr: A) -> Self
pub fn addr<A: Into<BulkString>>(self, addr: A) -> Self
Address in the format of ip:port
The ip:port should match a line returned by the
client_list
command (addr field).
sourcepub fn laddr<A: Into<BulkString>>(self, laddr: A) -> Self
pub fn laddr<A: Into<BulkString>>(self, laddr: A) -> Self
Kill all clients connected to specified local (bind) address.
Trait Implementations
sourceimpl Default for ClientKillOptions
impl Default for ClientKillOptions
sourcefn default() -> ClientKillOptions
fn default() -> ClientKillOptions
Returns the “default value” for a type. Read more
sourceimpl IntoArgs for ClientKillOptions
impl IntoArgs for ClientKillOptions
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Auto Trait Implementations
impl RefUnwindSafe for ClientKillOptions
impl Send for ClientKillOptions
impl Sync for ClientKillOptions
impl Unpin for ClientKillOptions
impl UnwindSafe for ClientKillOptions
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