Struct usb_pd::messages::pdo::FixedVariableRequestDataObject
source · pub struct FixedVariableRequestDataObject(pub u32);
Tuple Fields§
§0: u32
Implementations§
source§impl FixedVariableRequestDataObject
impl FixedVariableRequestDataObject
sourcepub fn object_position(&self) -> u8
pub fn object_position(&self) -> u8
Valid range 1..=14
sourcepub fn with_object_position(self, value: u8) -> Self
pub fn with_object_position(self, value: u8) -> Self
Valid range 1..=14
sourcepub fn set_object_position(&mut self, value: u8)
pub fn set_object_position(&mut self, value: u8)
Valid range 1..=14
pub fn giveback_flag(&self) -> bool
pub fn with_giveback_flag(self, value: bool) -> Self
pub fn set_giveback_flag(&mut self, value: bool)
pub fn capability_mismatch(&self) -> bool
pub fn with_capability_mismatch(self, value: bool) -> Self
pub fn set_capability_mismatch(&mut self, value: bool)
pub fn usb_communications_capable(&self) -> bool
pub fn with_usb_communications_capable(self, value: bool) -> Self
pub fn set_usb_communications_capable(&mut self, value: bool)
pub fn no_usb_suspend(&self) -> bool
pub fn with_no_usb_suspend(self, value: bool) -> Self
pub fn set_no_usb_suspend(&mut self, value: bool)
pub fn unchunked_extended_messages_supported(&self) -> bool
pub fn with_unchunked_extended_messages_supported(self, value: bool) -> Self
pub fn set_unchunked_extended_messages_supported(&mut self, value: bool)
pub fn epr_mode_capable(&self) -> bool
pub fn with_epr_mode_capable(self, value: bool) -> Self
pub fn set_epr_mode_capable(&mut self, value: bool)
pub fn raw_operating_current(&self) -> u16
pub fn with_raw_operating_current(self, value: u16) -> Self
pub fn set_raw_operating_current(&mut self, value: u16)
pub fn raw_max_operating_current(&self) -> u16
pub fn with_raw_max_operating_current(self, value: u16) -> Self
pub fn set_raw_max_operating_current(&mut self, value: u16)
source§impl FixedVariableRequestDataObject
impl FixedVariableRequestDataObject
pub fn to_bytes(&self, buf: &mut [u8])
pub fn operating_current(&self) -> ElectricCurrent
pub fn max_operating_current(&self) -> ElectricCurrent
Trait Implementations§
source§impl Clone for FixedVariableRequestDataObject
impl Clone for FixedVariableRequestDataObject
source§fn clone(&self) -> FixedVariableRequestDataObject
fn clone(&self) -> FixedVariableRequestDataObject
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 From<FixedVariableRequestDataObject> for u32
impl From<FixedVariableRequestDataObject> for u32
source§fn from(other: FixedVariableRequestDataObject) -> Self
fn from(other: FixedVariableRequestDataObject) -> Self
Converts to this type from the input type.
source§impl From<u32> for FixedVariableRequestDataObject
impl From<u32> for FixedVariableRequestDataObject
source§impl PartialEq for FixedVariableRequestDataObject
impl PartialEq for FixedVariableRequestDataObject
source§fn eq(&self, other: &FixedVariableRequestDataObject) -> bool
fn eq(&self, other: &FixedVariableRequestDataObject) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FixedVariableRequestDataObject
impl Eq for FixedVariableRequestDataObject
impl StructuralPartialEq for FixedVariableRequestDataObject
Auto Trait Implementations§
impl Freeze for FixedVariableRequestDataObject
impl RefUnwindSafe for FixedVariableRequestDataObject
impl Send for FixedVariableRequestDataObject
impl Sync for FixedVariableRequestDataObject
impl Unpin for FixedVariableRequestDataObject
impl UnwindSafe for FixedVariableRequestDataObject
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.