use crate::{DeviceInfo, MemoryStats};
#[derive(Debug, Clone)]
pub struct Device(std::convert::Infallible);
impl Device {
pub fn system_default() -> Option<Device> {
None
}
pub fn shared() -> Option<&'static Device> {
None
}
pub fn info(&self) -> &DeviceInfo {
match self.0 {}
}
pub fn memory(&self) -> MemoryStats {
match self.0 {}
}
pub fn set_wired_limit(&self, _bytes: usize) -> crate::Result<usize> {
match self.0 {}
}
pub fn set_memory_limit(&self, _bytes: usize) -> usize {
match self.0 {}
}
pub fn set_cache_limit(&self, _bytes: usize) -> usize {
match self.0 {}
}
pub fn reset_peak(&self) {
match self.0 {}
}
}
pub mod profile {
pub fn enabled() -> bool {
false
}
pub fn report() -> Vec<(String, u64, f64)> {
Vec::new()
}
pub fn reset() {}
}