pub enum DeviceMemoryError {
InvalidPath,
QueryFailed,
BufferOverflow,
}Expand description
Errors from get_device_memory_data.
Variants§
InvalidPath
The model path could not be encoded as a C string.
QueryFailed
The underlying C++ helper failed (model missing, incompatible params, …).
BufferOverflow
More devices were reported than the internal buffer allows.
Trait Implementations§
Source§impl Debug for DeviceMemoryError
impl Debug for DeviceMemoryError
Source§impl Display for DeviceMemoryError
impl Display for DeviceMemoryError
impl Eq for DeviceMemoryError
Source§impl Error for DeviceMemoryError
impl Error for DeviceMemoryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for DeviceMemoryError
impl PartialEq for DeviceMemoryError
Source§fn eq(&self, other: &DeviceMemoryError) -> bool
fn eq(&self, other: &DeviceMemoryError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeviceMemoryError
Auto Trait Implementations§
impl Freeze for DeviceMemoryError
impl RefUnwindSafe for DeviceMemoryError
impl Send for DeviceMemoryError
impl Sync for DeviceMemoryError
impl Unpin for DeviceMemoryError
impl UnsafeUnpin for DeviceMemoryError
impl UnwindSafe for DeviceMemoryError
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