pub enum LoaderKind {
BpfLoader2,
Upgradeable,
LoaderV4,
Unknown,
}Expand description
Which loader manages a given program account. The classifier matches against the base58-encoded owner pubkey as it comes out of the Solana JSON-RPC response; callers don’t need to decode to raw bytes first.
Variants§
BpfLoader2
BPFLoader2111… — account data is the ELF directly.
Upgradeable
BPFLoaderUpgradeab1e… — Program + ProgramData split.
LoaderV4
LoaderV411… — 48-byte header then ELF.
Unknown
Owner doesn’t match any known loader. Caller should surface the actual owner string to the user.
Trait Implementations§
Source§impl Clone for LoaderKind
impl Clone for LoaderKind
Source§fn clone(&self) -> LoaderKind
fn clone(&self) -> LoaderKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LoaderKind
impl Debug for LoaderKind
Source§impl PartialEq for LoaderKind
impl PartialEq for LoaderKind
Source§fn eq(&self, other: &LoaderKind) -> bool
fn eq(&self, other: &LoaderKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LoaderKind
impl Eq for LoaderKind
impl StructuralPartialEq for LoaderKind
Auto Trait Implementations§
impl Freeze for LoaderKind
impl RefUnwindSafe for LoaderKind
impl Send for LoaderKind
impl Sync for LoaderKind
impl Unpin for LoaderKind
impl UnsafeUnpin for LoaderKind
impl UnwindSafe for LoaderKind
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