pub enum LeanSessionImportProfile {
ExportedPublic,
Server,
Private,
FullPrivateCompat,
}Expand description
Closed import profiles for full host sessions.
Profiles intentionally expose names tied to host semantics rather than raw
Lean import knobs. All full-session profiles keep loadExts := true; the
no-extension variant remains a profiling-only diagnostic path and never
produces a normal LeanSession. Because full sessions load environment
extensions, they are not eligible for Environment.freeRegions cleanup; use
a worker process boundary to reset Lean import state.
Variants§
ExportedPublic
Public exported declarations only, with environment extensions loaded.
Server
Server-level import data without import all, with environment
extensions loaded.
Private
Private-level import data without import all, with environment
extensions loaded.
FullPrivateCompat
Legacy compatibility import shape: import all, private level, with
environment extensions loaded.
Implementations§
Source§impl LeanSessionImportProfile
impl LeanSessionImportProfile
pub const fn label(self) -> &'static str
pub const fn import_all(self) -> bool
pub const fn import_level(self) -> LeanImportLevel
pub const fn load_exts(self) -> bool
Trait Implementations§
Source§impl Clone for LeanSessionImportProfile
impl Clone for LeanSessionImportProfile
Source§fn clone(&self) -> LeanSessionImportProfile
fn clone(&self) -> LeanSessionImportProfile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more