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 kernel_names(&self) -> crate::Result<Vec<String>> {
match self.0 {}
}
pub fn nax(&self) -> crate::NaxStatus {
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 fn can_wire(&self) -> bool {
match self.0 {}
}
#[doc(hidden)]
pub fn __set_residency_set_cap(&self, _bytes: usize) {
match self.0 {}
}
pub fn clear_cache(&self) {
match self.0 {}
}
pub fn start_capture(&self, _path: impl AsRef<std::path::Path>) -> crate::Result<()> {
match self.0 {}
}
pub fn stop_capture(&self) {
match self.0 {}
}
}
pub mod profile {
pub fn enabled() -> bool {
false
}
pub fn report() -> Vec<(String, u64, f64)> {
Vec::new()
}
pub fn reset() {}
}