pub enum OperatingCurrentSelection {
Show 16 variants
_1A = 0,
_1_25A = 1,
_1_5A = 2,
_1_75A = 3,
_2A = 4,
_2_25A = 5,
_2_5A = 6,
_2_75A = 7,
_3A = 8,
_3_25A = 9,
_3_5A = 10,
_3_75A = 11,
_4A = 12,
_4_25A = 13,
_4_5A = 14,
Maximum = 15,
}Expand description
Represents the different Currents the device will limit itself too. The actual current the device can support is defined by the SourceMaximumCurrent If the maximum current is requested, the device will use the highest available current level. This can be requested using the negotiate maximum power function
Variants§
_1A = 0
_1_25A = 1
_1_5A = 2
_1_75A = 3
_2A = 4
_2_25A = 5
_2_5A = 6
_2_75A = 7
_3A = 8
_3_25A = 9
_3_5A = 10
_3_75A = 11
_4A = 12
_4_25A = 13
_4_5A = 14
Maximum = 15
Implementations§
Source§impl OperatingCurrentSelection
impl OperatingCurrentSelection
Sourcepub fn current(&self) -> ElectricCurrent
pub fn current(&self) -> ElectricCurrent
Returns the Operating Current in a useable uom ElectricCurrent. Where 5A is the “Maximum” value
Trait Implementations§
Source§impl Clone for OperatingCurrentSelection
impl Clone for OperatingCurrentSelection
Source§fn clone(&self) -> OperatingCurrentSelection
fn clone(&self) -> OperatingCurrentSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OperatingCurrentSelection
Source§impl Debug for OperatingCurrentSelection
impl Debug for OperatingCurrentSelection
Source§impl Display for OperatingCurrentSelection
impl Display for OperatingCurrentSelection
Source§impl Format for OperatingCurrentSelection
impl Format for OperatingCurrentSelection
Source§impl PartialOrd for OperatingCurrentSelection
impl PartialOrd for OperatingCurrentSelection
impl StructuralPartialEq for OperatingCurrentSelection
Source§impl TryFrom<usize> for OperatingCurrentSelection
impl TryFrom<usize> for OperatingCurrentSelection
Auto Trait Implementations§
impl Freeze for OperatingCurrentSelection
impl RefUnwindSafe for OperatingCurrentSelection
impl Send for OperatingCurrentSelection
impl Sync for OperatingCurrentSelection
impl Unpin for OperatingCurrentSelection
impl UnsafeUnpin for OperatingCurrentSelection
impl UnwindSafe for OperatingCurrentSelection
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