Struct seed::boot_info::LoadedImage
source · #[repr(C)]pub struct LoadedImage {
pub name: String<MAX_IMAGE_NAME_LENGTH>,
pub segments: Vec<Segment, MAX_IMAGE_LOADED_SEGMENTS>,
pub master_tls: Option<Segment>,
pub entry_point: VAddr,
pub capability_stream: [u8; 32],
}
Expand description
Describes an image loaded from the filesystem by the loader, as the kernel does not have the capabilities to do
so. Images are expected to have three segments (rodata
loaded as read-only, data
loaded as read+write, and
text
loaded as read+execute).
Fields§
§name: String<MAX_IMAGE_NAME_LENGTH>
§segments: Vec<Segment, MAX_IMAGE_LOADED_SEGMENTS>
§master_tls: Option<Segment>
§entry_point: VAddr
The virtual address at which to start executing the image.
capability_stream: [u8; 32]
Trait Implementations§
source§impl Clone for LoadedImage
impl Clone for LoadedImage
source§fn clone(&self) -> LoadedImage
fn clone(&self) -> LoadedImage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LoadedImage
impl Debug for LoadedImage
source§impl Default for LoadedImage
impl Default for LoadedImage
source§fn default() -> LoadedImage
fn default() -> LoadedImage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoadedImage
impl RefUnwindSafe for LoadedImage
impl Send for LoadedImage
impl Sync for LoadedImage
impl Unpin for LoadedImage
impl UnwindSafe for LoadedImage
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
)