pub struct ClientKill { /* private fields */ }Expand description
CLIENT KILL [ID id] [ADDR addr] [LADDR addr] [USER user] [SKIPME yes|no]
Kill client connections matching the given filters. Returns the number of clients killed.
Implementations§
Source§impl ClientKill
impl ClientKill
Sourcepub fn new() -> ClientKill
pub fn new() -> ClientKill
Create a new ClientKill command.
Sourcepub fn id(self, id: i64) -> ClientKill
pub fn id(self, id: i64) -> ClientKill
Kill client by connection ID.
Sourcepub fn addr(self, addr: impl Into<String>) -> ClientKill
pub fn addr(self, addr: impl Into<String>) -> ClientKill
Kill client by remote address (ip:port).
Sourcepub fn laddr(self, laddr: impl Into<String>) -> ClientKill
pub fn laddr(self, laddr: impl Into<String>) -> ClientKill
Kill client by local address (ip:port).
Sourcepub fn user(self, user: impl Into<String>) -> ClientKill
pub fn user(self, user: impl Into<String>) -> ClientKill
Kill client by authenticated username.
Sourcepub fn skipme(self, skipme: bool) -> ClientKill
pub fn skipme(self, skipme: bool) -> ClientKill
Whether to skip the calling client (default yes).
Trait Implementations§
Source§impl Clone for ClientKill
impl Clone for ClientKill
Source§fn clone(&self) -> ClientKill
fn clone(&self) -> ClientKill
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Command for ClientKill
impl Command for ClientKill
Source§fn parse_response(
&self,
frame: Frame,
) -> Result<<ClientKill as Command>::Response, RedisError>
fn parse_response( &self, frame: Frame, ) -> Result<<ClientKill as Command>::Response, RedisError>
Parse a RESP response frame into the typed response. Read more
Source§fn idempotent(&self) -> bool
fn idempotent(&self) -> bool
Whether this command is safe to retry on connection errors. Read more
Source§fn is_blocking(&self) -> bool
fn is_blocking(&self) -> bool
Whether this command blocks the connection until data is available or a
timeout elapses –
BLPOP, BRPOP, BLMOVE, BZPOPMIN/BZPOPMAX, and
XREAD/XREADGROUP with BLOCK. Read moreSource§impl Default for ClientKill
impl Default for ClientKill
Source§fn default() -> ClientKill
fn default() -> ClientKill
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClientKill
impl RefUnwindSafe for ClientKill
impl Send for ClientKill
impl Sync for ClientKill
impl Unpin for ClientKill
impl UnsafeUnpin for ClientKill
impl UnwindSafe for ClientKill
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<C> RequestDeadline for Cwhere
C: Command,
impl<C> RequestDeadline for Cwhere
C: Command,
Source§fn request_deadline(&self) -> Option<Instant>
fn request_deadline(&self) -> Option<Instant>
Return the request’s absolute deadline, if it carries one.