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
sourceimpl Extension for CpiGuard
impl Extension for CpiGuard
sourceconst TYPE: ExtensionType = ExtensionType::CpiGuard
const TYPE: ExtensionType = ExtensionType::CpiGuard
Associated extension type enum, checked at the start of TLV entries
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
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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
. Read more