pub enum ClientKillFilter {
Addr(Vec<u8>),
Id(u64),
}Expand description
Parsed CLIENT KILL selector. Addr matches the peer ip:port
exactly; Id matches the instance-unique conn id.
Variants§
Implementations§
Source§impl ClientKillFilter
impl ClientKillFilter
Sourcepub fn parse<A: ArgvView + ?Sized>(args: &A) -> Option<(Self, bool)>
pub fn parse<A: ArgvView + ?Sized>(args: &A) -> Option<(Self, bool)>
Parse the argv of CLIENT KILL …. Returns the selector plus
true for the legacy positional form (CLIENT KILL addr:port),
whose reply is +OK / -ERR instead of the filtered form’s
killed-count integer. None = a shape this server doesn’t
support (the caller answers with a syntax error).
Trait Implementations§
Source§impl Clone for ClientKillFilter
impl Clone for ClientKillFilter
Source§fn clone(&self) -> ClientKillFilter
fn clone(&self) -> ClientKillFilter
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 Debug for ClientKillFilter
impl Debug for ClientKillFilter
impl Eq for ClientKillFilter
Source§impl PartialEq for ClientKillFilter
impl PartialEq for ClientKillFilter
impl StructuralPartialEq for ClientKillFilter
Auto Trait Implementations§
impl Freeze for ClientKillFilter
impl RefUnwindSafe for ClientKillFilter
impl Send for ClientKillFilter
impl Sync for ClientKillFilter
impl Unpin for ClientKillFilter
impl UnsafeUnpin for ClientKillFilter
impl UnwindSafe for ClientKillFilter
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