Enum external_memory::ExternalImageMemory[][src]

pub enum ExternalImageMemory {
    OpaqueFd(Fd),
    DmaBuf(FdOption<DrmFormatImageProperties>),
    HostAllocation(Ptr),
    HostMappedForeignMemory(Ptr),
}
Expand description

Representation of an external memory for image creation.

Variants

OpaqueFd(Fd)

This is supported on Unix only. Same as ExternalMemoryTypeFlags::OPAQUE_FD while holding a Fd.

This is supported on Linux or Android only. Same as ExternalMemoryTypeFlags::DMA_BUF while holding a Fd.

HostAllocation(Ptr)
HostMappedForeignMemory(Ptr)

Implementations

Get the ExternalMemoryType from this enum.

Get the PlatformMemoryType from this enum.

Get the associated unix file descriptor as (Fd).

Get the associated host pointer as (Ptr).

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.