pub enum Vtl2BaseAddressType {
File,
Absolute(u64),
MemoryLayout {
size: Option<u64>,
},
Vtl2Allocate {
size: Option<u64>,
},
}
Expand description
Different types to specify the base address for the VTL2 region of the IGVM file.
Variants§
File
Use the addresses specified in the file. The IGVM file does not need to support relocations.
Absolute(u64)
Put VTL2 at the specified address. The IGVM file must support relocations.
MemoryLayout
Use the specified range in the supplied MemoryLayout, as the caller has created a specific range for VTL2. The IGVM file must support relocations.
An optional size may be specified to override the size describing VTL2 provided in the IGVM file. It must be larger than the IGVM file provided size.
Vtl2Allocate
Tell VTL2 to allocate out it’s own memory. This will load the file at the base address specified in the file, and the host will tell VTL2 the size of memory to allocate for itself.
An optional size may be specified to override the size describing VTL2 provided in the IGVM file. It must be larger than the IGVM file provided size.
Trait Implementations§
Source§impl Clone for Vtl2BaseAddressType
impl Clone for Vtl2BaseAddressType
Source§fn clone(&self) -> Vtl2BaseAddressType
fn clone(&self) -> Vtl2BaseAddressType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Vtl2BaseAddressType
impl Debug for Vtl2BaseAddressType
Source§impl DefaultEncoding for Vtl2BaseAddressType
impl DefaultEncoding for Vtl2BaseAddressType
Source§type Encoding = OneofEncoder
type Encoding = OneofEncoder
Source§impl<'encoding> OneofDecode<'encoding, Resource> for Vtl2BaseAddressType
impl<'encoding> OneofDecode<'encoding, Resource> for Vtl2BaseAddressType
Source§fn read_variant(
item: &mut InplaceOption<'_, Self>,
n: u32,
field: FieldReader<'encoding, '_, Resource>,
) -> Result<()>
fn read_variant( item: &mut InplaceOption<'_, Self>, n: u32, field: FieldReader<'encoding, '_, Resource>, ) -> Result<()>
Source§impl OneofEncode<Resource> for Vtl2BaseAddressType
impl OneofEncode<Resource> for Vtl2BaseAddressType
Source§fn write_variant(self, writer: MessageWriter<'_, '_, Resource>)
fn write_variant(self, writer: MessageWriter<'_, '_, Resource>)
Source§fn compute_variant_size(&mut self, sizer: MessageSizer<'_>)
fn compute_variant_size(&mut self, sizer: MessageSizer<'_>)
impl Copy for Vtl2BaseAddressType
Auto Trait Implementations§
impl Freeze for Vtl2BaseAddressType
impl RefUnwindSafe for Vtl2BaseAddressType
impl Send for Vtl2BaseAddressType
impl Sync for Vtl2BaseAddressType
impl Unpin for Vtl2BaseAddressType
impl UnwindSafe for Vtl2BaseAddressType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> MeshField for Twhere
T: DefaultEncoding,
<T as DefaultEncoding>::Encoding: FieldEncode<T, Resource> + for<'a> FieldDecode<'a, T, Resource> + Send + Sync,
impl<T> MeshField for Twhere
T: DefaultEncoding,
<T as DefaultEncoding>::Encoding: FieldEncode<T, Resource> + for<'a> FieldDecode<'a, T, Resource> + Send + Sync,
type Encoding = <T as DefaultEncoding>::Encoding
Source§impl<T> MeshPayload for Twhere
T: DefaultEncoding + Any + Send + 'static,
<T as DefaultEncoding>::Encoding: MessageEncode<T, Resource> + for<'a> MessageDecode<'a, T, Resource> + FieldEncode<T, Resource> + for<'a> FieldDecode<'a, T, Resource> + Send + Sync,
impl<T> MeshPayload for Twhere
T: DefaultEncoding + Any + Send + 'static,
<T as DefaultEncoding>::Encoding: MessageEncode<T, Resource> + for<'a> MessageDecode<'a, T, Resource> + FieldEncode<T, Resource> + for<'a> FieldDecode<'a, T, Resource> + Send + Sync,
type Encoding = <T as DefaultEncoding>::Encoding
Source§impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
Source§fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
MessageEncode::compute_message_size
.Source§fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
MessageEncode::write_message
.