Struct usb_pd::messages::vdo::VDMIdentityHeader
source · pub struct VDMIdentityHeader(pub u32);
Tuple Fields§
§0: u32
Implementations§
source§impl VDMIdentityHeader
impl VDMIdentityHeader
sourcepub fn with_host_data(self, value: bool) -> Self
pub fn with_host_data(self, value: bool) -> Self
Host data capable
sourcepub fn set_host_data(&mut self, value: bool)
pub fn set_host_data(&mut self, value: bool)
Host data capable
sourcepub fn device_data(&self) -> bool
pub fn device_data(&self) -> bool
Device data capable
sourcepub fn with_device_data(self, value: bool) -> Self
pub fn with_device_data(self, value: bool) -> Self
Device data capable
sourcepub fn set_device_data(&mut self, value: bool)
pub fn set_device_data(&mut self, value: bool)
Device data capable
sourcepub fn product_type_ufp(&self) -> SOPProductTypeUFP
pub fn product_type_ufp(&self) -> SOPProductTypeUFP
Product type UFP
sourcepub fn with_product_type_ufp(self, value: SOPProductTypeUFP) -> Self
pub fn with_product_type_ufp(self, value: SOPProductTypeUFP) -> Self
Product type UFP
sourcepub fn set_product_type_ufp(&mut self, value: SOPProductTypeUFP)
pub fn set_product_type_ufp(&mut self, value: SOPProductTypeUFP)
Product type UFP
sourcepub fn modal_supported(&self) -> bool
pub fn modal_supported(&self) -> bool
Modal Operation Supported
sourcepub fn with_modal_supported(self, value: bool) -> Self
pub fn with_modal_supported(self, value: bool) -> Self
Modal Operation Supported
sourcepub fn set_modal_supported(&mut self, value: bool)
pub fn set_modal_supported(&mut self, value: bool)
Modal Operation Supported
sourcepub fn product_type_dfp(&self) -> SOPProductTypeDFP
pub fn product_type_dfp(&self) -> SOPProductTypeDFP
Product type DFP
sourcepub fn with_product_type_dfp(self, value: SOPProductTypeDFP) -> Self
pub fn with_product_type_dfp(self, value: SOPProductTypeDFP) -> Self
Product type DFP
sourcepub fn set_product_type_dfp(&mut self, value: SOPProductTypeDFP)
pub fn set_product_type_dfp(&mut self, value: SOPProductTypeDFP)
Product type DFP
sourcepub fn connector_type(&self) -> ConnectorType
pub fn connector_type(&self) -> ConnectorType
Connector type
sourcepub fn with_connector_type(self, value: ConnectorType) -> Self
pub fn with_connector_type(self, value: ConnectorType) -> Self
Connector type
sourcepub fn set_connector_type(&mut self, value: ConnectorType)
pub fn set_connector_type(&mut self, value: ConnectorType)
Connector type
Trait Implementations§
source§impl Clone for VDMIdentityHeader
impl Clone for VDMIdentityHeader
source§fn clone(&self) -> VDMIdentityHeader
fn clone(&self) -> VDMIdentityHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VDMIdentityHeader
impl Debug for VDMIdentityHeader
source§impl Format for VDMIdentityHeader
impl Format for VDMIdentityHeader
source§impl From<VDMIdentityHeader> for u32
impl From<VDMIdentityHeader> for u32
source§fn from(other: VDMIdentityHeader) -> Self
fn from(other: VDMIdentityHeader) -> Self
Converts to this type from the input type.
source§impl From<u32> for VDMIdentityHeader
impl From<u32> for VDMIdentityHeader
source§impl PartialEq for VDMIdentityHeader
impl PartialEq for VDMIdentityHeader
source§fn eq(&self, other: &VDMIdentityHeader) -> bool
fn eq(&self, other: &VDMIdentityHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for VDMIdentityHeader
impl Eq for VDMIdentityHeader
impl StructuralPartialEq for VDMIdentityHeader
Auto Trait Implementations§
impl Freeze for VDMIdentityHeader
impl RefUnwindSafe for VDMIdentityHeader
impl Send for VDMIdentityHeader
impl Sync for VDMIdentityHeader
impl Unpin for VDMIdentityHeader
impl UnwindSafe for VDMIdentityHeader
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, U> UnsafeFrom<U> for Twhere
U: Into<T>,
impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
source§unsafe fn unsafe_from(other: U) -> T
unsafe fn unsafe_from(other: U) -> T
Calls U::into(other)
.
That is, this conversion is whatever the implementation of Into
<T> for U
chooses to
do.
source§impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
source§unsafe fn unsafe_into(self) -> U
unsafe fn unsafe_into(self) -> U
Calls U::unsafe_from(self)
.
That is, this conversion is whatever the implementation of UnsafeFrom
<T> for U
chooses to do.