pub trait IMacVendorCache {
// Required methods
fn new() -> Self;
fn add(&self, mac_addr: String, vendor_name: String);
fn contains(&self, mac_addr: &String) -> bool;
fn get(&self, mac_addr: &String) -> String;
fn length(&self) -> usize;
}
Required Methods§
fn new() -> Self
fn add(&self, mac_addr: String, vendor_name: String)
fn contains(&self, mac_addr: &String) -> bool
fn get(&self, mac_addr: &String) -> String
fn length(&self) -> usize
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.