pub trait Bridge {
// Required methods
fn hw_address(&self) -> Result<String, Error>;
fn carrier(&self) -> Result<bool, Error>;
fn slaves(&self) -> Result<Vec<Device>, Error>;
}Required Methods§
fn hw_address(&self) -> Result<String, Error>
fn carrier(&self) -> Result<bool, Error>
fn slaves(&self) -> Result<Vec<Device>, Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".