mirror of
https://github.com/jht5945/rust_util.git
synced 2025-12-27 15:40:03 +08:00
feat: ip address support ord, eq
This commit is contained in:
@@ -5,7 +5,7 @@ use crate::XResult;
|
||||
|
||||
const DEFAULT_LISTEN_ADDR: [u8; 4] = [127, 0, 0, 1];
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, PartialOrd, PartialEq, Ord, Eq)]
|
||||
pub enum IpAddress {
|
||||
Ipv4([u8; 4]),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user