use crate::Address;
pub trait NicExt {
fn broadcast(&self) -> Option<Address>;
fn is_broadcast(&self) -> bool;
fn is_point_to_point(&self) -> bool;
}
#[cfg(target_os = "macos")]
impl NicExt for crate::Nic {
fn broadcast(&self) -> Option<Address> {
self.as_ref().broadcast()
}
fn is_broadcast(&self) -> bool {
self.as_ref().is_broadcast()
}
fn is_point_to_point(&self) -> bool {
self.as_ref().is_point_to_point()
}
}