pub struct BackendStatus {
pub is_initialized: bool,
pub is_ready: bool,
pub active_devices: Vec<Device>,
pub memory_usage: HashMap<Device, u64>,
pub operations_completed: u64,
pub last_error: Option<String>,
pub backend_specific: HashMap<String, Value>,
}Expand description
Backend status information
Fields§
§is_initialized: boolWhether backend is initialized
is_ready: boolWhether backend is ready for operations
active_devices: Vec<Device>Currently active devices
memory_usage: HashMap<Device, u64>Memory usage per device
operations_completed: u64Number of operations completed
last_error: Option<String>Last error (if any)
backend_specific: HashMap<String, Value>Backend-specific status information
Trait Implementations§
Source§impl Clone for BackendStatus
impl Clone for BackendStatus
Source§fn clone(&self) -> BackendStatus
fn clone(&self) -> BackendStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BackendStatus
impl Debug for BackendStatus
Source§impl<'de> Deserialize<'de> for BackendStatus
impl<'de> Deserialize<'de> for BackendStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BackendStatus
impl RefUnwindSafe for BackendStatus
impl Send for BackendStatus
impl Sync for BackendStatus
impl Unpin for BackendStatus
impl UnsafeUnpin for BackendStatus
impl UnwindSafe for BackendStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more