pub trait Device:
Send
+ Sync
+ 'static {
// Required methods
fn device_info(&self) -> DeviceInfo;
fn screen_info(&self) -> ScreenInfo;
fn vibrate(&self, long: bool) -> Result<(), PlatformError>;
fn make_phone_call(&self, phone_number: &str) -> Result<(), PlatformError>;
}Required Methods§
fn device_info(&self) -> DeviceInfo
fn screen_info(&self) -> ScreenInfo
fn vibrate(&self, long: bool) -> Result<(), PlatformError>
fn make_phone_call(&self, phone_number: &str) -> Result<(), PlatformError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".