Struct usb_pd::messages::pdo::SourceCapabilities
source · pub struct SourceCapabilities(/* private fields */);
Implementations§
source§impl SourceCapabilities
impl SourceCapabilities
pub fn vsafe_5v(&self) -> Option<&FixedSupply>
pub fn dual_role_power(&self) -> bool
pub fn usb_suspend_supported(&self) -> bool
pub fn unconstrained_power(&self) -> bool
pub fn dual_role_data(&self) -> bool
pub fn unchunked_extended_messages_supported(&self) -> bool
pub fn epr_mode_capable(&self) -> bool
pub fn pdos(&self) -> &[PowerDataObject]
Trait Implementations§
source§impl Clone for SourceCapabilities
impl Clone for SourceCapabilities
source§fn clone(&self) -> SourceCapabilities
fn clone(&self) -> SourceCapabilities
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 SourceCapabilities
impl Debug for SourceCapabilities
source§impl Format for SourceCapabilities
impl Format for SourceCapabilities
source§impl PdoState for SourceCapabilities
impl PdoState for SourceCapabilities
fn pdo_at_object_position(&self, position: u8) -> Option<PowerDataObjectType>
Auto Trait Implementations§
impl Freeze for SourceCapabilities
impl RefUnwindSafe for SourceCapabilities
impl Send for SourceCapabilities
impl Sync for SourceCapabilities
impl Unpin for SourceCapabilities
impl UnwindSafe for SourceCapabilities
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.