Struct rustis::ClientKillOptions
source · pub struct ClientKillOptions { /* private fields */ }Expand description
Options for the client-kill command.
Implementations§
source§impl 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<CommandArg>>(self, username: U) -> Self
sourcepub fn addr<A: Into<CommandArg>>(self, addr: A) -> Self
pub fn addr<A: Into<CommandArg>>(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<CommandArg>>(self, laddr: A) -> Self
pub fn laddr<A: Into<CommandArg>>(self, laddr: A) -> Self
Kill all clients connected to specified local (bind) address.
Trait Implementations§
source§impl Default for ClientKillOptions
impl Default for ClientKillOptions
source§fn default() -> ClientKillOptions
fn default() -> ClientKillOptions
Returns the “default value” for a type. Read more