#[repr(u64)]pub enum HeapType {
SystemRam = 0,
AmlogicSecure = 1_152_921_504_606_912_512,
AmlogicSecureVdec = 1_152_921_504_606_912_513,
GoldfishDeviceLocal = 1_152_921_504_606_978_048,
GoldfishHostVisible = 1_152_921_504_606_978_049,
Framebuffer = 1_152_921_504_607_043_585,
}
Expand description
Known heap types. Device specific types should have bit 60 set. Top order bit is reserved and should not be set.
This type is deprecated for new code, but is still used by some camera code.
Variants§
SystemRam = 0
AmlogicSecure = 1_152_921_504_606_912_512
Heap used for amlogic protected memory.
AmlogicSecureVdec = 1_152_921_504_606_912_513
Heap used for amlogic protected memory between decrypt and video decode.
GoldfishDeviceLocal = 1_152_921_504_606_978_048
Heap used by goldfish vulkan for device-local memory.
GoldfishHostVisible = 1_152_921_504_606_978_049
Heap used by goldfish vulkan for host-visible memory.
Framebuffer = 1_152_921_504_607_043_585
Heap used for display framebuffer. This is used by display drivers limited to a single framebuffer located at a specific physical address. The framebuffer heap makes it possible to create buffer collections for the framebuffer and enables sysmem support in these drivers.
Implementations§
Source§impl HeapType
impl HeapType
pub fn from_primitive(prim: u64) -> Option<Self>
pub const fn into_primitive(self) -> u64
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<HeapType, D> for HeapType
impl<D: ResourceDialect> Decode<HeapType, D> for HeapType
Source§impl Ord for HeapType
impl Ord for HeapType
Source§impl PartialOrd for HeapType
impl PartialOrd for HeapType
Source§impl TypeMarker for HeapType
impl TypeMarker for HeapType
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for HeapType
impl ValueTypeMarker for HeapType
impl Copy for HeapType
impl Eq for HeapType
impl StructuralPartialEq for HeapType
Auto Trait Implementations§
impl Freeze for HeapType
impl RefUnwindSafe for HeapType
impl Send for HeapType
impl Sync for HeapType
impl Unpin for HeapType
impl UnwindSafe for HeapType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)