pub enum NativeDevice<Def, Alt>where
Def: DeviceInterface,
Alt: DeviceInterface,{
Default(<Def::Connection as ConnectionInterface>::NativeDevice),
Alternate(<Alt::Connection as ConnectionInterface>::NativeDevice),
}
Expand description
Represents a native platform-specific device.
Variants§
Default(<Def::Connection as ConnectionInterface>::NativeDevice)
The default native device type.
Alternate(<Alt::Connection as ConnectionInterface>::NativeDevice)
The alternate native device type.
Auto Trait Implementations§
impl<Def, Alt> Freeze for NativeDevice<Def, Alt>where
<<Def as Device>::Connection as Connection>::NativeDevice: Freeze,
<<Alt as Device>::Connection as Connection>::NativeDevice: Freeze,
impl<Def, Alt> RefUnwindSafe for NativeDevice<Def, Alt>where
<<Def as Device>::Connection as Connection>::NativeDevice: RefUnwindSafe,
<<Alt as Device>::Connection as Connection>::NativeDevice: RefUnwindSafe,
impl<Def, Alt> Send for NativeDevice<Def, Alt>where
<<Def as Device>::Connection as Connection>::NativeDevice: Send,
<<Alt as Device>::Connection as Connection>::NativeDevice: Send,
impl<Def, Alt> Sync for NativeDevice<Def, Alt>where
<<Def as Device>::Connection as Connection>::NativeDevice: Sync,
<<Alt as Device>::Connection as Connection>::NativeDevice: Sync,
impl<Def, Alt> Unpin for NativeDevice<Def, Alt>where
<<Def as Device>::Connection as Connection>::NativeDevice: Unpin,
<<Alt as Device>::Connection as Connection>::NativeDevice: Unpin,
impl<Def, Alt> UnwindSafe for NativeDevice<Def, Alt>where
<<Def as Device>::Connection as Connection>::NativeDevice: UnwindSafe,
<<Alt as Device>::Connection as Connection>::NativeDevice: UnwindSafe,
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