#[repr(u32)]pub enum ControlDirection {
In = 1,
Out = 2,
InOut = 3,
}
Variants§
In = 1
Input flag (1<<0)
Out = 2
Output flag (1<<1)
InOut = 3
Input and output flags combined (1<<0 | 1<<1)
Trait Implementations§
Source§impl Clone for ControlDirection
impl Clone for ControlDirection
Source§fn clone(&self) -> ControlDirection
fn clone(&self) -> ControlDirection
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 ControlDirection
impl Debug for ControlDirection
Source§impl From<ControlDirection> for u32
impl From<ControlDirection> for u32
Source§fn from(enum_value: ControlDirection) -> Self
fn from(enum_value: ControlDirection) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ControlDirection
impl PartialEq for ControlDirection
Source§impl TryFrom<u32> for ControlDirection
impl TryFrom<u32> for ControlDirection
Source§impl TryFromPrimitive for ControlDirection
impl TryFromPrimitive for ControlDirection
impl Copy for ControlDirection
impl Eq for ControlDirection
impl StructuralPartialEq for ControlDirection
Auto Trait Implementations§
impl Freeze for ControlDirection
impl RefUnwindSafe for ControlDirection
impl Send for ControlDirection
impl Sync for ControlDirection
impl Unpin for ControlDirection
impl UnwindSafe for ControlDirection
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