Trait surfman::chains::SwapChainsAPI

source ·
pub trait SwapChainsAPI<SwapChainID>:
    'static
    + Clone
    + Send {
    type Surface;
    type SwapChain: SwapChainAPI<Surface = Self::Surface>;

    // Required method
    fn get(&self, id: SwapChainID) -> Option<Self::SwapChain>;
}
Expand description

The consumer’s view of a collection of swap chains

Required Associated Types§

Required Methods§

source

fn get(&self, id: SwapChainID) -> Option<Self::SwapChain>

Get a swap chain

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<SwapChainID, Device> SwapChainsAPI<SwapChainID> for SwapChains<SwapChainID, Device>
where SwapChainID: 'static + Clone + Eq + Hash + Debug + Sync + Send, Device: 'static + DeviceAPI, Device::Surface: Send,

source§

type Surface = <Device as Device>::Surface

source§

type SwapChain = SwapChain<Device>