pub mod byte_order;
pub use byte_order::Ipv4ByteOrder;
use std::net::IpAddr;
#[cfg(unix)]
mod unix;
use crate::error::Result;
#[cfg(unix)]
pub use unix::*;
#[cfg(windows)]
mod windows;
#[cfg(windows)]
pub use self::windows::*;
#[cfg_attr(test, mockall::automock)]
pub trait Platform {
fn byte_order_for_address(addr: IpAddr) -> Result<Ipv4ByteOrder>;
fn lookup_interface_addr(addr: IpAddr, name: &str) -> Result<IpAddr>;
fn discover_local_addr(target_addr: IpAddr, port: u16) -> Result<IpAddr>;
}