Struct spl_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 for CpiGuard
impl PartialEq 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> 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> 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
.