pub struct DeviceInfo<T0, T1, T2, T3> {
pub vendor_id: T0,
pub product_id: T1,
pub version: T2,
pub name: T3,
}Expand description
The generic type corresponding to DeviceInfo.
Fields§
§vendor_id: T0§product_id: T1§version: T2§name: T3Trait Implementations§
Source§impl<___E, T0, T1, T2, T3> Encode<DeviceInfo<'static>, ___E> for DeviceInfo<T0, T1, T2, T3>where
___E: InternalHandleEncoder + Encoder + ?Sized,
T0: Encode<Uint32, ___E>,
T1: Encode<Uint32, ___E>,
T2: Encode<Uint32, ___E>,
T3: Encode<String<'static>, ___E>,
impl<___E, T0, T1, T2, T3> Encode<DeviceInfo<'static>, ___E> for DeviceInfo<T0, T1, T2, T3>where
___E: InternalHandleEncoder + Encoder + ?Sized,
T0: Encode<Uint32, ___E>,
T1: Encode<Uint32, ___E>,
T2: Encode<Uint32, ___E>,
T3: Encode<String<'static>, ___E>,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<DeviceInfo<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<DeviceInfo<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Auto Trait Implementations§
impl<T0, T1, T2, T3> Freeze for DeviceInfo<T0, T1, T2, T3>
impl<T0, T1, T2, T3> RefUnwindSafe for DeviceInfo<T0, T1, T2, T3>
impl<T0, T1, T2, T3> Send for DeviceInfo<T0, T1, T2, T3>
impl<T0, T1, T2, T3> Sync for DeviceInfo<T0, T1, T2, T3>
impl<T0, T1, T2, T3> Unpin for DeviceInfo<T0, T1, T2, T3>
impl<T0, T1, T2, T3> UnsafeUnpin for DeviceInfo<T0, T1, T2, T3>
impl<T0, T1, T2, T3> UnwindSafe for DeviceInfo<T0, T1, T2, T3>
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<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]