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.
Variants§
ExportedPublic
Public exported declarations only.
Server
Server-level import data without import all.
Private
Private-level import data without import all.
FullPrivateCompat
Legacy compatibility import shape: import all, private level,
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
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 moreimpl Copy for LeanSessionImportProfile
Source§impl Debug for LeanSessionImportProfile
impl Debug for LeanSessionImportProfile
Source§impl Default for LeanSessionImportProfile
impl Default for LeanSessionImportProfile
Source§fn default() -> LeanSessionImportProfile
fn default() -> LeanSessionImportProfile
Returns the “default value” for a type. Read more
impl Eq for LeanSessionImportProfile
Source§impl PartialEq for LeanSessionImportProfile
impl PartialEq for LeanSessionImportProfile
Source§fn eq(&self, other: &LeanSessionImportProfile) -> bool
fn eq(&self, other: &LeanSessionImportProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LeanSessionImportProfile
Auto Trait Implementations§
impl Freeze for LeanSessionImportProfile
impl RefUnwindSafe for LeanSessionImportProfile
impl Send for LeanSessionImportProfile
impl Sync for LeanSessionImportProfile
impl Unpin for LeanSessionImportProfile
impl UnsafeUnpin for LeanSessionImportProfile
impl UnwindSafe for LeanSessionImportProfile
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