#[repr(u32)]pub enum Orientation {
Normal = 1,
Reverse = 2,
UnknownOrdinal_(u32),
}Expand description
Orientation of the plug in a USB Type-C receptacle, indicating which CC pin the partner is attached on so a Type-C mux can route lanes according to the active mode.
Variants§
Trait Implementations§
Source§impl Clone for Orientation
impl Clone for Orientation
Source§fn clone(&self) -> Orientation
fn clone(&self) -> Orientation
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 Orientation
Source§impl Debug for Orientation
impl Debug for Orientation
Source§impl<___E> Encode<Orientation, ___E> for Orientationwhere
___E: ?Sized,
impl<___E> Encode<Orientation, ___E> for Orientationwhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<Orientation>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<Orientation>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<'a, ___E> Encode<Orientation, ___E> for &'a Orientationwhere
___E: ?Sized,
impl<'a, ___E> Encode<Orientation, ___E> for &'a Orientationwhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<Orientation>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<Orientation>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
impl Eq for Orientation
Source§impl From<Orientation> for Orientation
impl From<Orientation> for Orientation
Source§fn from(wire: Orientation) -> Orientation
fn from(wire: Orientation) -> Orientation
Converts to this type from the input type.
Source§impl From<Orientation> for Orientation
impl From<Orientation> for Orientation
Source§fn from(natural: Orientation) -> Orientation
fn from(natural: Orientation) -> Orientation
Converts to this type from the input type.
Source§impl From<u32> for Orientation
impl From<u32> for Orientation
Source§fn from(value: u32) -> Orientation
fn from(value: u32) -> Orientation
Converts to this type from the input type.
Source§impl FromWire<Orientation> for Orientation
impl FromWire<Orientation> for Orientation
Source§fn from_wire(wire: Orientation) -> Orientation
fn from_wire(wire: Orientation) -> Orientation
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl FromWireRef<Orientation> for Orientation
impl FromWireRef<Orientation> for Orientation
Source§fn from_wire_ref(wire: &Orientation) -> Orientation
fn from_wire_ref(wire: &Orientation) -> Orientation
Converts the given reference to this type.
Source§impl Hash for Orientation
impl Hash for Orientation
Source§impl Ord for Orientation
impl Ord for Orientation
Source§fn cmp(&self, other: &Orientation) -> Ordering
fn cmp(&self, other: &Orientation) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for Orientation
impl PartialEq for Orientation
Source§impl PartialOrd for Orientation
impl PartialOrd for Orientation
impl StructuralPartialEq for Orientation
Auto Trait Implementations§
impl Freeze for Orientation
impl RefUnwindSafe for Orientation
impl Send for Orientation
impl Sync for Orientation
impl Unpin for Orientation
impl UnsafeUnpin for Orientation
impl UnwindSafe for Orientation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]