fn enabled(&self) -> bool {
        match *self {
            // Header v1 has no flag for this, and therefore all apps are
            // always enabled.
            TbfHeader::TbfHeaderV1(_) => true,
            TbfHeader::TbfHeaderV2(hd) => {
                // Bit 1 of flags is the enable/disable bit.
                hd.base.flags & 0x00000001 == 1
            }
            TbfHeader::Padding(_) => false,
        }
    }
/// Return whether the application is enabled or not.
/// Disabled applications are not started by the kernel.
Return whether the application is enabled or not.
Disabled applications are not started by the kernel.
Return whether the application is enabled or not . Disabled applications are not started by the kernel .
fn enabled(&self) -> bool {
        match *self {
            // Header v1 has no flag for this, and therefore all apps are
            // always enabled.
            TbfHeader::TbfHeaderV1(_) => true,
            TbfHeader::TbfHeaderV2(hd) => {
                // Bit 1 of flags is the enable/disable bit.
                hd.base.flags & 0x00000001 == 1
            }
            TbfHeader::Padding(_) => false,
        }
    }
fn enabled ( & self ) -> bool { match * self { // Header v1 has no flag for this, and therefore all apps are // always enabled. TbfHeader :: TbfHeaderV1 ( _ ) => true , TbfHeader :: TbfHeaderV2 ( hd ) => { // Bit 1 of flags is the enable/disable bit. hd . base . flags & 0x00000001 == 1 } TbfHeader :: Padding ( _ ) => false , } }
Return whether the application is enabled or not.
Return whether the application is enabled or not .
&self
&self