pub enum KillTarget {
CommonName(String),
Address {
protocol: String,
ip: String,
port: u16,
},
}Expand description
How to identify a client to kill (server mode).
Variants§
CommonName(String)
Kill by Common Name from the client’s TLS certificate.
Address
Kill by exact protocol:IP:port of the client’s real address.
Wire: kill tcp:1.2.3.4:4000
Trait Implementations§
Source§impl Clone for KillTarget
impl Clone for KillTarget
Source§fn clone(&self) -> KillTarget
fn clone(&self) -> KillTarget
Returns a duplicate of the value. Read more
1.0.0 · 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 KillTarget
impl Debug for KillTarget
Source§impl PartialEq for KillTarget
impl PartialEq for KillTarget
impl Eq for KillTarget
impl StructuralPartialEq for KillTarget
Auto Trait Implementations§
impl Freeze for KillTarget
impl RefUnwindSafe for KillTarget
impl Send for KillTarget
impl Sync for KillTarget
impl Unpin for KillTarget
impl UnsafeUnpin for KillTarget
impl UnwindSafe for KillTarget
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