#[repr(C)]pub struct DeviceInfo {
pub vendor_id: Uint16,
pub device_id: Uint16,
pub base_class: u8,
pub sub_class: u8,
pub program_interface: u8,
pub revision_id: u8,
pub bus_id: u8,
pub dev_id: u8,
pub func_id: u8,
pub padding: Unit,
}Expand description
The wire type corresponding to DeviceInfo.
Fields§
§vendor_id: Uint16§device_id: Uint16§base_class: u8§sub_class: u8§program_interface: u8§revision_id: u8§bus_id: u8§dev_id: u8§func_id: u8§padding: UnitTrait Implementations§
Source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
Source§fn clone(&self) -> DeviceInfo
fn clone(&self) -> DeviceInfo
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 moreSource§impl Constrained for DeviceInfo
impl Constrained for DeviceInfo
Source§type Constraint = ()
type Constraint = ()
Type of constraint information for this type.
Source§fn validate(
_: Slot<'_, DeviceInfo>,
_: <DeviceInfo as Constrained>::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, DeviceInfo>, _: <DeviceInfo as Constrained>::Constraint, ) -> Result<(), ValidationError>
Validate a slot of this type against a constraint. Can be called when
pointers/envelopes are just presence markers.
Source§impl Debug for DeviceInfo
impl Debug for DeviceInfo
Source§impl<___D> Decode<___D> for DeviceInfowhere
___D: InternalHandleDecoder + ?Sized,
impl<___D> Decode<___D> for DeviceInfowhere
___D: InternalHandleDecoder + ?Sized,
Source§impl<'a, ___E> Encode<DeviceInfo, ___E> for &'a DeviceInfowhere
___E: InternalHandleEncoder + ?Sized,
impl<'a, ___E> Encode<DeviceInfo, ___E> for &'a DeviceInfowhere
___E: InternalHandleEncoder + ?Sized,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<DeviceInfo>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<DeviceInfo>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> Encode<DeviceInfo, ___E> for DeviceInfowhere
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<DeviceInfo, ___E> for DeviceInfowhere
___E: InternalHandleEncoder + ?Sized,
Source§const COPY_OPTIMIZATION: CopyOptimization<DeviceInfo, DeviceInfo>
const COPY_OPTIMIZATION: CopyOptimization<DeviceInfo, DeviceInfo>
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<DeviceInfo>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<DeviceInfo>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§impl<___E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> Encode<DeviceInfo, ___E> for DeviceInfo<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>
impl<___E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> Encode<DeviceInfo, ___E> for DeviceInfo<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<DeviceInfo>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<DeviceInfo>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl FromWire<DeviceInfo> for DeviceInfo
impl FromWire<DeviceInfo> for DeviceInfo
Source§const COPY_OPTIMIZATION: CopyOptimization<DeviceInfo, DeviceInfo>
const COPY_OPTIMIZATION: CopyOptimization<DeviceInfo, DeviceInfo>
Source§fn from_wire(wire: DeviceInfo) -> DeviceInfo
fn from_wire(wire: DeviceInfo) -> DeviceInfo
Converts the given owned value to this type.
Source§impl FromWireRef<DeviceInfo> for DeviceInfo
impl FromWireRef<DeviceInfo> for DeviceInfo
Source§fn from_wire_ref(wire: &DeviceInfo) -> DeviceInfo
fn from_wire_ref(wire: &DeviceInfo) -> DeviceInfo
Converts the given reference to this type.
Source§impl IntoNatural for DeviceInfo
impl IntoNatural for DeviceInfo
Source§type Natural = DeviceInfo
type Natural = DeviceInfo
A good default type for this wire type to convert into.
§fn into_natural(self) -> Self::Natural
fn into_natural(self) -> Self::Natural
Converts this type into its natural equivalent.
Source§impl Wire for DeviceInfo
impl Wire for DeviceInfo
Source§type Narrowed<'de> = DeviceInfo
type Narrowed<'de> = DeviceInfo
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(out_: &mut MaybeUninit<DeviceInfo>)
fn zero_padding(out_: &mut MaybeUninit<DeviceInfo>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl Freeze for DeviceInfo
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnsafeUnpin for DeviceInfo
impl UnwindSafe for DeviceInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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]