Struct usb_pd::messages::vdo::UFPTypeVDO
source · pub struct UFPTypeVDO(pub u32);
Tuple Fields§
§0: u32
Implementations§
source§impl UFPTypeVDO
impl UFPTypeVDO
sourcepub fn with_version(self, value: u8) -> Self
pub fn with_version(self, value: u8) -> Self
USB Product ID
sourcepub fn set_version(&mut self, value: u8)
pub fn set_version(&mut self, value: u8)
USB Product ID
pub fn device_capability(&self) -> u8
pub fn with_device_capability(self, value: u8) -> Self
pub fn set_device_capability(&mut self, value: u8)
pub fn vconn_power(&self) -> u8
pub fn with_vconn_power(self, value: u8) -> Self
pub fn set_vconn_power(&mut self, value: u8)
pub fn vconn_required(&self) -> bool
pub fn with_vconn_required(self, value: bool) -> Self
pub fn set_vconn_required(&mut self, value: bool)
pub fn vbus_required(&self) -> bool
pub fn with_vbus_required(self, value: bool) -> Self
pub fn set_vbus_required(&mut self, value: bool)
pub fn alternate_modes(&self) -> u8
pub fn with_alternate_modes(self, value: u8) -> Self
pub fn set_alternate_modes(&mut self, value: u8)
pub fn usb_highest_speed(&self) -> u8
pub fn with_usb_highest_speed(self, value: u8) -> Self
pub fn set_usb_highest_speed(&mut self, value: u8)
Trait Implementations§
source§impl Clone for UFPTypeVDO
impl Clone for UFPTypeVDO
source§fn clone(&self) -> UFPTypeVDO
fn clone(&self) -> UFPTypeVDO
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 UFPTypeVDO
impl Debug for UFPTypeVDO
source§impl Format for UFPTypeVDO
impl Format for UFPTypeVDO
source§impl From<UFPTypeVDO> for u32
impl From<UFPTypeVDO> for u32
source§fn from(other: UFPTypeVDO) -> Self
fn from(other: UFPTypeVDO) -> Self
Converts to this type from the input type.
source§impl From<u32> for UFPTypeVDO
impl From<u32> for UFPTypeVDO
source§impl PartialEq for UFPTypeVDO
impl PartialEq for UFPTypeVDO
source§fn eq(&self, other: &UFPTypeVDO) -> bool
fn eq(&self, other: &UFPTypeVDO) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for UFPTypeVDO
impl Eq for UFPTypeVDO
impl StructuralPartialEq for UFPTypeVDO
Auto Trait Implementations§
impl Freeze for UFPTypeVDO
impl RefUnwindSafe for UFPTypeVDO
impl Send for UFPTypeVDO
impl Sync for UFPTypeVDO
impl Unpin for UFPTypeVDO
impl UnwindSafe for UFPTypeVDO
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.