pub struct ProgramHeader {
pub p_type: ProgramType,
pub p_flags: ProgramFlags,
pub p_offset: u64,
pub p_vaddr: u64,
pub p_paddr: u64,
pub p_filesz: u64,
pub p_memsz: u64,
pub p_align: u64,
}Fields§
§p_type: ProgramType§p_flags: ProgramFlags§p_offset: u64§p_vaddr: u64§p_paddr: u64§p_filesz: u64§p_memsz: u64§p_align: u64Implementations§
Source§impl ProgramHeader
impl ProgramHeader
pub fn from_bytes(b: &[u8]) -> Result<Self, EZBpfError>
pub fn to_bytes(&self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for ProgramHeader
impl Clone for ProgramHeader
Source§fn clone(&self) -> ProgramHeader
fn clone(&self) -> ProgramHeader
Returns a duplicate 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 ProgramHeader
impl Debug for ProgramHeader
Source§impl<'de> Deserialize<'de> for ProgramHeader
impl<'de> Deserialize<'de> for ProgramHeader
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProgramHeader
impl RefUnwindSafe for ProgramHeader
impl Send for ProgramHeader
impl Sync for ProgramHeader
impl Unpin for ProgramHeader
impl UnwindSafe for ProgramHeader
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