#[repr(transparent)]pub struct PortFeature(pub i32);Tuple Fields§
§0: i32Implementations§
Source§impl PortFeature
impl PortFeature
pub const ENABLE: PortFeature
pub const SUSPEND: PortFeature
pub const RESET: PortFeature
pub const POWER: PortFeature
pub const OWNER: PortFeature
pub const CONNECT_CHANGE: PortFeature
pub const ENABLE_CHANGE: PortFeature
pub const SUSPEND_CHANGE: PortFeature
pub const OVER_CURRENT_CHARGE: PortFeature
pub const RESET_CHANGE: PortFeature
Trait Implementations§
Source§impl Clone for PortFeature
impl Clone for PortFeature
Source§fn clone(&self) -> PortFeature
fn clone(&self) -> PortFeature
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 PortFeature
impl Debug for PortFeature
Source§impl Hash for PortFeature
impl Hash for PortFeature
Source§impl Ord for PortFeature
impl Ord for PortFeature
Source§fn cmp(&self, other: &PortFeature) -> Ordering
fn cmp(&self, other: &PortFeature) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PortFeature
impl PartialEq for PortFeature
Source§impl PartialOrd for PortFeature
impl PartialOrd for PortFeature
impl Copy for PortFeature
impl Eq for PortFeature
impl StructuralPartialEq for PortFeature
Auto Trait Implementations§
impl Freeze for PortFeature
impl RefUnwindSafe for PortFeature
impl Send for PortFeature
impl Sync for PortFeature
impl Unpin for PortFeature
impl UnwindSafe for PortFeature
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