pub struct IdentityPartner<'fd> { /* private fields */ }Expand description
A handle to a Partner’s identity information.
Implementations§
Source§impl IdentityPartner<'_>
impl IdentityPartner<'_>
Sourcepub fn id_header(&self) -> impl PropertyReadable<Read = VdoIdHeaderPartner> + '_
pub fn id_header(&self) -> impl PropertyReadable<Read = VdoIdHeaderPartner> + '_
The identity header.
If this property is not available yet, then calling PropertyReadable::get
will return Error::IdentityUnavailable.
Sourcepub fn cert_stat(&self) -> impl PropertyReadable<Read = VdoCertStat> + '_
pub fn cert_stat(&self) -> impl PropertyReadable<Read = VdoCertStat> + '_
The XID from a USB-IF certified device.
If this property is not available, either because it has not been determined yet
or the device is not USB-IF certified, then calling PropertyReadable::get
will return Error::IdentityUnavailable.
Sourcepub fn product(&self) -> impl PropertyReadable<Read = VdoProduct> + '_
pub fn product(&self) -> impl PropertyReadable<Read = VdoProduct> + '_
The product IDs.
If this property is not available yet, then calling PropertyReadable::get
will return Error::IdentityUnavailable.
pub fn product_type_vdo1(&self) -> impl PropertyReadable<Read = u32> + '_
pub fn product_type_vdo2(&self) -> impl PropertyReadable<Read = u32> + '_
pub fn product_type_vdo3(&self) -> impl PropertyReadable<Read = u32> + '_
Trait Implementations§
Auto Trait Implementations§
impl<'fd> Freeze for IdentityPartner<'fd>
impl<'fd> RefUnwindSafe for IdentityPartner<'fd>
impl<'fd> Send for IdentityPartner<'fd>
impl<'fd> Sync for IdentityPartner<'fd>
impl<'fd> Unpin for IdentityPartner<'fd>
impl<'fd> UnwindSafe for IdentityPartner<'fd>
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