#[non_exhaustive]pub struct SpdkEligibility {
pub eligible: bool,
pub reasons_failed: Vec<SpdkSkipReason>,
pub eligible_devices: Vec<PciAddress>,
}Expand description
Outcome of the SPDK eligibility probe.
Returned by crate::capability::probe::spdk_eligibility().
eligible == true requires every precondition to pass AND at
least one usable NVMe device.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.eligible: booltrue only when every precondition passed and at least one
NVMe device is available.
reasons_failed: Vec<SpdkSkipReason>All preconditions that failed. Empty when eligible == true.
eligible_devices: Vec<PciAddress>NVMe devices that passed individual probing (driver unbound
or already bound to vfio-pci / uio_pci_generic).
Trait Implementations§
Source§impl Clone for SpdkEligibility
impl Clone for SpdkEligibility
Source§fn clone(&self) -> SpdkEligibility
fn clone(&self) -> SpdkEligibility
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SpdkEligibility
impl RefUnwindSafe for SpdkEligibility
impl Send for SpdkEligibility
impl Sync for SpdkEligibility
impl Unpin for SpdkEligibility
impl UnsafeUnpin for SpdkEligibility
impl UnwindSafe for SpdkEligibility
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