pub struct PdoPath {
pub port: u32,
pub pd: u32,
pub role: PowerRole,
pub index: u32,
pub supply: SupplyKind,
}Fields§
§port: u32The number of the port this device is connected to.
pd: u32The index of this pdo’s PowerDeliveryPath the partner’s collection.
role: PowerRoleIs this a source or a sink?
index: u32The index of this device in the parent’s collection.
supply: SupplyKindThe type of power supply.
Trait Implementations§
Source§impl DevicePath for PdoPath
impl DevicePath for PdoPath
Source§type Parent = CapabilitiesPath
type Parent = CapabilitiesPath
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 DevicePathIndexed for PdoPath
impl DevicePathIndexed for PdoPath
impl Copy for PdoPath
impl Eq for PdoPath
impl StructuralPartialEq for PdoPath
Auto Trait Implementations§
impl Freeze for PdoPath
impl RefUnwindSafe for PdoPath
impl Send for PdoPath
impl Sync for PdoPath
impl Unpin for PdoPath
impl UnwindSafe for PdoPath
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