[][src]Struct metagoblin::mach::load_command::PrebindCksumCommand

#[repr(C)]pub struct PrebindCksumCommand {
    pub cmd: u32,
    pub cmdsize: u32,
    pub cksum: u32,
}

The prebind_cksum_command contains the value of the original check sum for prebound files or zero. When a prebound file is first created or modified for other than updating its prebinding information the value of the check sum is set to zero. When the file has it prebinding re-done and if the value of the check sum is zero the original check sum is calculated and stored in cksum field of this load command in the output file. If when the prebinding is re-done and the cksum field is non-zero it is left unchanged from the input file.

Fields

cmd: u32

LC_PREBIND_CKSUM

cmdsize: u32

sizeof(struct prebind_cksum_command)

cksum: u32

the check sum or zero

Trait Implementations

impl Clone for PrebindCksumCommand[src]

impl Copy for PrebindCksumCommand[src]

impl Debug for PrebindCksumCommand[src]

impl FromCtx<Endian, [u8]> for PrebindCksumCommand[src]

impl IntoCtx<Endian, [u8]> for PrebindCksumCommand[src]

impl<'a> IntoCtx<Endian, [u8]> for &'a PrebindCksumCommand[src]

impl SizeWith<Endian> for PrebindCksumCommand[src]

impl<'a> TryFromCtx<'a, Endian, [u8]> for PrebindCksumCommand where
    PrebindCksumCommand: 'a, 
[src]

type Error = Error

impl<'a> TryIntoCtx<Endian, [u8]> for &'a PrebindCksumCommand[src]

type Error = Error

impl TryIntoCtx<Endian, [u8]> for PrebindCksumCommand[src]

type Error = Error

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.