Struct rustis::commands::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: SingleArg>(self, username: U) -> Self
sourcepub fn addr<A: SingleArg>(self, addr: A) -> Self
pub fn addr<A: SingleArg>(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).
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
source§impl ToArgs for ClientKillOptions
impl ToArgs for ClientKillOptions
source§fn write_args(&self, args: &mut CommandArgs)
fn write_args(&self, args: &mut CommandArgs)
Write this Rust type as one ore multiple args into CommandArgs. Read more
Auto Trait Implementations§
impl Freeze for ClientKillOptions
impl RefUnwindSafe for ClientKillOptions
impl Send for ClientKillOptions
impl Sync for ClientKillOptions
impl Unpin for ClientKillOptions
impl UnwindSafe for ClientKillOptions
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