pub struct Spec {
pub supported_data_roles: Option<Vec<DataRole>>,
pub wake_on: Option<ConnectorState>,
}Expand description
Static hardware characteristics and driver capabilities of a physical USB connector.
Fields§
§supported_data_roles: Option<Vec<DataRole>>§wake_on: Option<ConnectorState>Trait Implementations§
Source§impl<___E> Encode<Spec<'static>, ___E> for Specwhere
___E: Encoder + ?Sized,
impl<___E> Encode<Spec<'static>, ___E> for Specwhere
___E: Encoder + ?Sized,
Source§impl<'a, ___E> Encode<Spec<'static>, ___E> for &'a Specwhere
___E: Encoder + ?Sized,
impl<'a, ___E> Encode<Spec<'static>, ___E> for &'a Specwhere
___E: Encoder + ?Sized,
impl Eq for Spec
Source§impl<'de> FromWireRef<Spec<'de>> for Spec
impl<'de> FromWireRef<Spec<'de>> for Spec
Source§fn from_wire_ref(wire: &Spec<'de>) -> Self
fn from_wire_ref(wire: &Spec<'de>) -> Self
Converts the given reference to this type.
Source§impl Ord for Spec
impl Ord for Spec
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 PartialOrd for Spec
impl PartialOrd for Spec
impl StructuralPartialEq for Spec
Auto Trait Implementations§
impl Freeze for Spec
impl RefUnwindSafe for Spec
impl Send for Spec
impl Sync for Spec
impl Unpin for Spec
impl UnsafeUnpin for Spec
impl UnwindSafe for Spec
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]