Trait drm::control::ResourceInfo

source ·
pub trait ResourceInfo: Clone + Eq {
    type Handle: ResourceHandle;

    fn load_from_device<T>(_: &T, _: Self::Handle) -> Result<Self>
    where
        T: Device
; fn handle(&self) -> Self::Handle; }
Expand description

Information about a resource or object managed by a Device.

Due to external events such as hot plugging, other tasks, and even buggy drivers, object information could change at any time. In fact, there are no guarantees that this resource has existed or will exist at any point in time. A process should treat a ResourceInfo as merely a hint to the current state of the Device.

Required Associated Types§

The type of handle used to load this trait.

Required Methods§

Load the resource from a Device given its ResourceHandle

Get the ResourceHandle for this resource.

Implementors§