pub enum LoadedProgramType {
FailedVerification(ProgramRuntimeEnvironment),
Closed,
DelayVisibility,
Unloaded(ProgramRuntimeEnvironment),
LegacyV0(Executable<InvokeContext<'static>>),
LegacyV1(Executable<InvokeContext<'static>>),
Typed(Executable<InvokeContext<'static>>),
Builtin(BuiltinProgram<InvokeContext<'static>>),
}
Variants§
FailedVerification(ProgramRuntimeEnvironment)
Tombstone for undeployed, closed or unloadable programs
Closed
DelayVisibility
Unloaded(ProgramRuntimeEnvironment)
Successfully verified but not currently compiled, used to track usage statistics when a compiled program is evicted from memory.
LegacyV0(Executable<InvokeContext<'static>>)
LegacyV1(Executable<InvokeContext<'static>>)
Typed(Executable<InvokeContext<'static>>)
Builtin(BuiltinProgram<InvokeContext<'static>>)
Implementations§
source§impl LoadedProgramType
impl LoadedProgramType
sourcepub fn get_environment(&self) -> Option<&ProgramRuntimeEnvironment>
pub fn get_environment(&self) -> Option<&ProgramRuntimeEnvironment>
Returns a reference to its environment if it has one
Trait Implementations§
source§impl Debug for LoadedProgramType
impl Debug for LoadedProgramType
source§impl Default for LoadedProgramType
impl Default for LoadedProgramType
source§fn default() -> LoadedProgramType
fn default() -> LoadedProgramType
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoadedProgramType
impl RefUnwindSafe for LoadedProgramType
impl Send for LoadedProgramType
impl Sync for LoadedProgramType
impl Unpin for LoadedProgramType
impl !UnwindSafe for LoadedProgramType
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