pub enum ProgramCacheEntryType {
FailedVerification(ProgramRuntimeEnvironment),
Closed,
DelayVisibility,
Unloaded(ProgramRuntimeEnvironment),
Loaded(Executable<InvokeContext<'static, 'static>>),
Builtin(BuiltinProgram<InvokeContext<'static, 'static>>),
}agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Expand description
Actual payload of ProgramCacheEntry.
Variantsยง
FailedVerification(ProgramRuntimeEnvironment)
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Tombstone for programs which currently do not pass the verifier but could if the feature set changed.
Closed
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Tombstone for programs that were either explicitly closed or never deployed.
Itโs also used for accounts belonging to program loaders, that donโt actually contain program code (e.g. buffer accounts for LoaderV3 programs).
DelayVisibility
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Tombstone for programs which have recently been modified but the new version is not visible yet.
Unloaded(ProgramRuntimeEnvironment)
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Successfully verified but not currently compiled.
It continues to track usage statistics even when the compiled executable of the program is evicted from memory.
Loaded(Executable<InvokeContext<'static, 'static>>)
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Verified and compiled program
Builtin(BuiltinProgram<InvokeContext<'static, 'static>>)
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.A built-in program which is not stored on-chain but backed into and distributed with the validator
Implementationsยง
Sourceยงimpl ProgramCacheEntryType
impl ProgramCacheEntryType
Sourcepub fn get_environment(&self) -> Option<&ProgramRuntimeEnvironment>
๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn get_environment(&self) -> Option<&ProgramRuntimeEnvironment>
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Returns a reference to its environment if it has one
Trait Implementationsยง
Sourceยงimpl Debug for ProgramCacheEntryType
impl Debug for ProgramCacheEntryType
Sourceยงimpl Default for ProgramCacheEntryType
impl Default for ProgramCacheEntryType
Sourceยงfn default() -> ProgramCacheEntryType
fn default() -> ProgramCacheEntryType
Auto Trait Implementationsยง
impl Freeze for ProgramCacheEntryType
impl RefUnwindSafe for ProgramCacheEntryType
impl Send for ProgramCacheEntryType
impl Sync for ProgramCacheEntryType
impl Unpin for ProgramCacheEntryType
impl !UnwindSafe for ProgramCacheEntryType
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
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more