Skip to main content

VerifiedHardwareCardIdentity

Struct VerifiedHardwareCardIdentity 

Source
pub struct VerifiedHardwareCardIdentity { /* private fields */ }
Expand description

Strict, continuous physical-card identity recovered from the transport.

A value is created only after re-running the existing pre-load, post-load, and post-run native-XRT continuity checks, including the raw platform and host reports. It is not a route seal and does not prove current card ownership.

use serde::de::DeserializeOwned;
use u280_evidence_oracle::VerifiedHardwareCardIdentity;
fn require_deserialize<T: DeserializeOwned>() {}
require_deserialize::<VerifiedHardwareCardIdentity>();
use u280_evidence_oracle::VerifiedHardwareCardIdentity;
fn require_clone<T: Clone>() {}
require_clone::<VerifiedHardwareCardIdentity>();

Implementations§

Source§

impl VerifiedHardwareCardIdentity

Source

pub fn device_index(&self) -> u64

Exact XRT device index used by the run.

Source

pub fn bdf(&self) -> &str

Canonical physical PCIe BDF.

Source

pub fn device_name(&self) -> &str

Exact XRT device/shell name.

Source

pub fn xmc_serial_number(&self) -> &str

Exact XMC serial number.

Source

pub fn shell_vbnv(&self) -> &str

Exact U280 shell VBNV.

Source

pub fn logic_uuid(&self) -> &str

Exact shell logic UUID.

Source

pub fn interface_uuid(&self) -> &str

Exact shell interface UUID.

Source

pub fn fpga_part(&self) -> &str

Exact FPGA part reported continuously by the card capture.

Source

pub fn xrt_build(&self) -> &VerifiedXrtBuildIdentity

Strict XRT build identity.

Source

pub fn xclbin(&self) -> &VerifiedHardwareXclbinIdentity

Strict programmed xclbin identity.

Trait Implementations§

Source§

impl Debug for VerifiedHardwareCardIdentity

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for VerifiedHardwareCardIdentity

Source§

fn eq(&self, other: &VerifiedHardwareCardIdentity) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for VerifiedHardwareCardIdentity

Source§

impl StructuralPartialEq for VerifiedHardwareCardIdentity

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.