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> RefUnwindSafe for NativeDevice<Def, Alt>where <<Alt as Device>::Connection as Connection>::NativeDevice: RefUnwindSafe, <<Def as Device>::Connection as Connection>::NativeDevice: RefUnwindSafe,
impl<Def, Alt> Send for NativeDevice<Def, Alt>where <<Alt as Device>::Connection as Connection>::NativeDevice: Send, <<Def as Device>::Connection as Connection>::NativeDevice: Send,
impl<Def, Alt> Sync for NativeDevice<Def, Alt>where <<Alt as Device>::Connection as Connection>::NativeDevice: Sync, <<Def as Device>::Connection as Connection>::NativeDevice: Sync,
impl<Def, Alt> Unpin for NativeDevice<Def, Alt>where <<Alt as Device>::Connection as Connection>::NativeDevice: Unpin, <<Def as Device>::Connection as Connection>::NativeDevice: Unpin,
impl<Def, Alt> UnwindSafe for NativeDevice<Def, Alt>where <<Alt as Device>::Connection as Connection>::NativeDevice: UnwindSafe, <<Def 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