Enum surfman::platform::generic::multi::connection::NativeConnection
source · pub enum NativeConnection<Def, Alt>where
Def: DeviceInterface,
Alt: DeviceInterface,
Def::Connection: ConnectionInterface,
Alt::Connection: ConnectionInterface,{
Default(<Def::Connection as ConnectionInterface>::NativeConnection),
Alternate(<Alt::Connection as ConnectionInterface>::NativeConnection),
}
Expand description
The native connection type.
Variants§
Default(<Def::Connection as ConnectionInterface>::NativeConnection)
The default native connection type.
Alternate(<Alt::Connection as ConnectionInterface>::NativeConnection)
The alternate native connection type.
Auto Trait Implementations§
impl<Def, Alt> Freeze for NativeConnection<Def, Alt>where
<Alt as Device>::Connection: Sized,
<Def as Device>::Connection: Sized,
<<Def as Device>::Connection as Connection>::NativeConnection: Freeze,
<<Alt as Device>::Connection as Connection>::NativeConnection: Freeze,
impl<Def, Alt> RefUnwindSafe for NativeConnection<Def, Alt>where
<Alt as Device>::Connection: Sized,
<Def as Device>::Connection: Sized,
<<Def as Device>::Connection as Connection>::NativeConnection: RefUnwindSafe,
<<Alt as Device>::Connection as Connection>::NativeConnection: RefUnwindSafe,
impl<Def, Alt> Send for NativeConnection<Def, Alt>where
<Alt as Device>::Connection: Sized,
<Def as Device>::Connection: Sized,
<<Def as Device>::Connection as Connection>::NativeConnection: Send,
<<Alt as Device>::Connection as Connection>::NativeConnection: Send,
impl<Def, Alt> Sync for NativeConnection<Def, Alt>where
<Alt as Device>::Connection: Sized,
<Def as Device>::Connection: Sized,
<<Def as Device>::Connection as Connection>::NativeConnection: Sync,
<<Alt as Device>::Connection as Connection>::NativeConnection: Sync,
impl<Def, Alt> Unpin for NativeConnection<Def, Alt>where
<Alt as Device>::Connection: Sized,
<Def as Device>::Connection: Sized,
<<Def as Device>::Connection as Connection>::NativeConnection: Unpin,
<<Alt as Device>::Connection as Connection>::NativeConnection: Unpin,
impl<Def, Alt> UnwindSafe for NativeConnection<Def, Alt>where
<Alt as Device>::Connection: Sized,
<Def as Device>::Connection: Sized,
<<Def as Device>::Connection as Connection>::NativeConnection: UnwindSafe,
<<Alt as Device>::Connection as Connection>::NativeConnection: 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