pub enum Evidence {
SysfsPath(String),
DeviceTreeCompatible(String),
Ioctl {
node: String,
call: String,
},
TrialInit {
node: String,
ms: u32,
},
ProcCpuinfo {
midr: u32,
},
}Expand description
What concretely proved a Probed::Present answer.
Evidence is ordered weakest-to-strongest: a sysfs path or a device-tree
compatible string is a declaration the kernel exposes, an ioctl readback
confirms the kernel driver answered, and a Evidence::TrialInit is the
strongest — the device accepted a real (bounded) initialization.
Variants§
SysfsPath(String)
A node was found at this sysfs path.
DeviceTreeCompatible(String)
/proc/device-tree/compatible (or an of_node) carried this string.
Ioctl
An ioctl on node (e.g. VIDIOC_QUERYCAP) answered successfully.
TrialInit
The device accepted a bounded trial init on node, completing in ms.
ProcCpuinfo
A core cluster’s MIDR (main ID register) read from /proc/cpuinfo.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Evidence
impl<'de> Deserialize<'de> for Evidence
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
impl Eq for Evidence
impl StructuralPartialEq for Evidence
Auto Trait Implementations§
impl Freeze for Evidence
impl RefUnwindSafe for Evidence
impl Send for Evidence
impl Sync for Evidence
impl Unpin for Evidence
impl UnsafeUnpin for Evidence
impl UnwindSafe for Evidence
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.