Struct solana_sdk::loader_v4::LoaderV4State
source · #[repr(C)]pub struct LoaderV4State {
pub slot: u64,
pub is_deployed: bool,
pub authority_address: Option<Pubkey>,
}
Expand description
LoaderV4 account states
Fields§
§slot: u64
Slot that the program was last initialized, deployed or retracted in.
is_deployed: bool
True if the program is ready to be executed, false if it is retracted for maintainance.
Authority address, None
means it is finalized.
Implementations§
source§impl LoaderV4State
impl LoaderV4State
sourcepub const fn program_data_offset() -> usize
pub const fn program_data_offset() -> usize
Size of a serialized program account.
Trait Implementations§
source§impl AbiExample for LoaderV4State
impl AbiExample for LoaderV4State
fn example() -> LoaderV4State
source§impl Clone for LoaderV4State
impl Clone for LoaderV4State
source§fn clone(&self) -> LoaderV4State
fn clone(&self) -> LoaderV4State
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LoaderV4State
impl Debug for LoaderV4State
source§impl<'de> Deserialize<'de> for LoaderV4State
impl<'de> Deserialize<'de> for LoaderV4State
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<LoaderV4State, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<LoaderV4State, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for LoaderV4State
impl PartialEq for LoaderV4State
source§fn eq(&self, other: &LoaderV4State) -> bool
fn eq(&self, other: &LoaderV4State) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LoaderV4State
impl Serialize for LoaderV4State
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for LoaderV4State
impl Eq for LoaderV4State
impl StructuralEq for LoaderV4State
impl StructuralPartialEq for LoaderV4State
Auto Trait Implementations§
impl RefUnwindSafe for LoaderV4State
impl Send for LoaderV4State
impl Sync for LoaderV4State
impl Unpin for LoaderV4State
impl UnwindSafe for LoaderV4State
Blanket Implementations§
source§impl<T> AbiEnumVisitor for Twhere
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + ?Sized,
default fn visit_for_abi( &self, _digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
source§impl<T> AbiEnumVisitor for Twhere
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + AbiExample + ?Sized,
default fn visit_for_abi( &self, digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more