Struct safe_token_2022::extension::cpi_guard::CpiGuard
source · #[repr(C)]pub struct CpiGuard {
pub lock_cpi: PodBool,
}
Expand description
CPI Guard extension for Accounts
Fields§
§lock_cpi: PodBool
Lock privileged token operations from happening via CPI
Trait Implementations§
source§impl Extension for CpiGuard
impl Extension for CpiGuard
source§const TYPE: ExtensionType = ExtensionType::CpiGuard
const TYPE: ExtensionType = ExtensionType::CpiGuard
Associated extension type enum, checked at the start of TLV entries
source§impl PartialEq<CpiGuard> for CpiGuard
impl PartialEq<CpiGuard> for CpiGuard
impl Copy for CpiGuard
impl Pod for CpiGuard
impl StructuralPartialEq for CpiGuard
Auto Trait Implementations§
impl RefUnwindSafe for CpiGuard
impl Send for CpiGuard
impl Sync for CpiGuard
impl Unpin for CpiGuard
impl UnwindSafe for CpiGuard
Blanket Implementations§
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.