pub struct ClientKillOptions<'a> { /* private fields */ }Expand description
Options for the client-kill command.
Implementations§
Source§impl<'a> ClientKillOptions<'a>
impl<'a> ClientKillOptions<'a>
pub fn id(self, client_id: i64) -> Self
pub fn client_type(self, client_type: ClientType) -> Self
pub fn user(self, username: &'a str) -> Self
Sourcepub fn addr(self, ip: &'a str, port: u16) -> Self
pub fn addr(self, ip: &'a str, port: u16) -> 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(self, ip: &'a str, port: u16) -> Self
pub fn laddr(self, ip: &'a str, port: u16) -> Self
Kill all clients connected to specified local (bind) address.
Trait Implementations§
Source§impl<'a> Default for ClientKillOptions<'a>
impl<'a> Default for ClientKillOptions<'a>
Source§fn default() -> ClientKillOptions<'a>
fn default() -> ClientKillOptions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ClientKillOptions<'a>
impl<'a> RefUnwindSafe for ClientKillOptions<'a>
impl<'a> Send for ClientKillOptions<'a>
impl<'a> Sync for ClientKillOptions<'a>
impl<'a> Unpin for ClientKillOptions<'a>
impl<'a> UnwindSafe for ClientKillOptions<'a>
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