pub struct CapabilitiesPath {
pub port: u32,
pub pd: u32,
pub role: PowerRole,
}Expand description
A path to a SourceCapabilities or SinkCapabilities.
Fields§
§port: u32The number of the port this device is connected to.
pd: u32The index of this device’s parent in the partner’s collection.
role: PowerRoleIs this a source or a sink?
Implementations§
Trait Implementations§
Source§impl Clone for CapabilitiesPath
impl Clone for CapabilitiesPath
Source§fn clone(&self) -> CapabilitiesPath
fn clone(&self) -> CapabilitiesPath
Returns a duplicate 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 CapabilitiesPath
impl Debug for CapabilitiesPath
Source§impl DevicePath for CapabilitiesPath
impl DevicePath for CapabilitiesPath
Source§type Parent = PowerDeliveryPath
type Parent = PowerDeliveryPath
The parent of this path, i.e. the
DevicePath representing the
filesystem location that contains this device. If this device is not
nested within another, then this will be NoParent.fn parse_basename(s: &str, parent: Self::Parent) -> Option<Self>
fn build_basename(&self, s: &mut String)
fn parent(&self) -> Self::Parent
Source§impl Hash for CapabilitiesPath
impl Hash for CapabilitiesPath
Source§impl PartialEq for CapabilitiesPath
impl PartialEq for CapabilitiesPath
impl Copy for CapabilitiesPath
impl Eq for CapabilitiesPath
impl StructuralPartialEq for CapabilitiesPath
Auto Trait Implementations§
impl Freeze for CapabilitiesPath
impl RefUnwindSafe for CapabilitiesPath
impl Send for CapabilitiesPath
impl Sync for CapabilitiesPath
impl Unpin for CapabilitiesPath
impl UnwindSafe for CapabilitiesPath
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