pub trait DtvStatType {
// Required methods
fn get_decibel(&self) -> Option<i64>;
fn get_relative(&self) -> Option<u16>;
fn get_counter(&self) -> Option<u64>;
// Provided methods
fn get_decibel_float(&self) -> Option<f64> { ... }
fn get_relative_percentage(&self) -> Option<u8> { ... }
}Required Methods§
fn get_decibel(&self) -> Option<i64>
fn get_relative(&self) -> Option<u16>
fn get_counter(&self) -> Option<u64>
Provided Methods§
fn get_decibel_float(&self) -> Option<f64>
fn get_relative_percentage(&self) -> Option<u8>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".