Struct usb_pd::messages::vdo::DisplayPortCapabilities
source · pub struct DisplayPortCapabilities(pub u32);
Tuple Fields§
§0: u32
Implementations§
source§impl DisplayPortCapabilities
impl DisplayPortCapabilities
sourcepub fn ufp_d_pin_assignments(&self) -> u8
pub fn ufp_d_pin_assignments(&self) -> u8
UFP_D Pin Assignments Supported
sourcepub fn with_ufp_d_pin_assignments(self, value: u8) -> Self
pub fn with_ufp_d_pin_assignments(self, value: u8) -> Self
UFP_D Pin Assignments Supported
sourcepub fn set_ufp_d_pin_assignments(&mut self, value: u8)
pub fn set_ufp_d_pin_assignments(&mut self, value: u8)
UFP_D Pin Assignments Supported
sourcepub fn dfp_d_pin_assignments(&self) -> u8
pub fn dfp_d_pin_assignments(&self) -> u8
DFP_D Pin Assignments Supported
sourcepub fn with_dfp_d_pin_assignments(self, value: u8) -> Self
pub fn with_dfp_d_pin_assignments(self, value: u8) -> Self
DFP_D Pin Assignments Supported
sourcepub fn set_dfp_d_pin_assignments(&mut self, value: u8)
pub fn set_dfp_d_pin_assignments(&mut self, value: u8)
DFP_D Pin Assignments Supported
sourcepub fn usb20_signalling_not_used(&self) -> bool
pub fn usb20_signalling_not_used(&self) -> bool
USB r2.0 Signalling Not Used
sourcepub fn with_usb20_signalling_not_used(self, value: bool) -> Self
pub fn with_usb20_signalling_not_used(self, value: bool) -> Self
USB r2.0 Signalling Not Used
sourcepub fn set_usb20_signalling_not_used(&mut self, value: bool)
pub fn set_usb20_signalling_not_used(&mut self, value: bool)
USB r2.0 Signalling Not Used
sourcepub fn receptacle_indication(&self) -> bool
pub fn receptacle_indication(&self) -> bool
Receptacle Indication
sourcepub fn with_receptacle_indication(self, value: bool) -> Self
pub fn with_receptacle_indication(self, value: bool) -> Self
Receptacle Indication
sourcepub fn set_receptacle_indication(&mut self, value: bool)
pub fn set_receptacle_indication(&mut self, value: bool)
Receptacle Indication
sourcepub fn signaling_rate(&self) -> u8
pub fn signaling_rate(&self) -> u8
Signalling for Transport of DisplayPort Protocol
sourcepub fn with_signaling_rate(self, value: u8) -> Self
pub fn with_signaling_rate(self, value: u8) -> Self
Signalling for Transport of DisplayPort Protocol
sourcepub fn set_signaling_rate(&mut self, value: u8)
pub fn set_signaling_rate(&mut self, value: u8)
Signalling for Transport of DisplayPort Protocol
sourcepub fn capability(&self) -> u8
pub fn capability(&self) -> u8
Port Capability
sourcepub fn with_capability(self, value: u8) -> Self
pub fn with_capability(self, value: u8) -> Self
Port Capability
sourcepub fn set_capability(&mut self, value: u8)
pub fn set_capability(&mut self, value: u8)
Port Capability
Trait Implementations§
source§impl Clone for DisplayPortCapabilities
impl Clone for DisplayPortCapabilities
source§fn clone(&self) -> DisplayPortCapabilities
fn clone(&self) -> DisplayPortCapabilities
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Format for DisplayPortCapabilities
impl Format for DisplayPortCapabilities
source§impl From<DisplayPortCapabilities> for u32
impl From<DisplayPortCapabilities> for u32
source§fn from(other: DisplayPortCapabilities) -> Self
fn from(other: DisplayPortCapabilities) -> Self
source§impl From<u32> for DisplayPortCapabilities
impl From<u32> for DisplayPortCapabilities
source§impl PartialEq for DisplayPortCapabilities
impl PartialEq for DisplayPortCapabilities
source§fn eq(&self, other: &DisplayPortCapabilities) -> bool
fn eq(&self, other: &DisplayPortCapabilities) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for DisplayPortCapabilities
impl Eq for DisplayPortCapabilities
impl StructuralPartialEq for DisplayPortCapabilities
Auto Trait Implementations§
impl Freeze for DisplayPortCapabilities
impl RefUnwindSafe for DisplayPortCapabilities
impl Send for DisplayPortCapabilities
impl Sync for DisplayPortCapabilities
impl Unpin for DisplayPortCapabilities
impl UnwindSafe for DisplayPortCapabilities
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
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.