pub struct LeanWorkerSessionConfig { /* private fields */ }Expand description
Configuration for opening one host session inside a worker child.
Implementations§
Source§impl LeanWorkerSessionConfig
impl LeanWorkerSessionConfig
Sourcepub fn new(
project_root: impl Into<PathBuf>,
package: impl Into<String>,
lib_name: impl Into<String>,
imports: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn new( project_root: impl Into<PathBuf>, package: impl Into<String>, lib_name: impl Into<String>, imports: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Create a session configuration for a Lake capability and import list.
Sourcepub fn manifest_backed(
project_root: impl Into<PathBuf>,
package: impl Into<String>,
lib_name: impl Into<String>,
manifest_path: impl Into<PathBuf>,
imports: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn manifest_backed( project_root: impl Into<PathBuf>, package: impl Into<String>, lib_name: impl Into<String>, manifest_path: impl Into<PathBuf>, imports: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Create a manifest-backed session configuration for a Lake capability.
Sourcepub fn shims_only(
project_root: impl Into<PathBuf>,
imports: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn shims_only( project_root: impl Into<PathBuf>, imports: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Create a session configuration backed only by the bundled host shims.
Sourcepub fn with_import_profile(
self,
profile: LeanWorkerSessionImportProfile,
) -> Self
pub fn with_import_profile( self, profile: LeanWorkerSessionImportProfile, ) -> Self
Select the full-session import profile for this worker session.
Sourcepub fn import_profile(&self) -> LeanWorkerSessionImportProfile
pub fn import_profile(&self) -> LeanWorkerSessionImportProfile
Return the full-session import profile used when opening this config.
Sourcepub fn with_imports(
&self,
imports: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn with_imports( &self, imports: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Return a copy of this config with a different import list, preserving the loading mode and import profile.
Trait Implementations§
Source§impl Clone for LeanWorkerSessionConfig
impl Clone for LeanWorkerSessionConfig
Source§fn clone(&self) -> LeanWorkerSessionConfig
fn clone(&self) -> LeanWorkerSessionConfig
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 LeanWorkerSessionConfig
impl Debug for LeanWorkerSessionConfig
impl Eq for LeanWorkerSessionConfig
Source§impl PartialEq for LeanWorkerSessionConfig
impl PartialEq for LeanWorkerSessionConfig
impl StructuralPartialEq for LeanWorkerSessionConfig
Auto Trait Implementations§
impl Freeze for LeanWorkerSessionConfig
impl RefUnwindSafe for LeanWorkerSessionConfig
impl Send for LeanWorkerSessionConfig
impl Sync for LeanWorkerSessionConfig
impl Unpin for LeanWorkerSessionConfig
impl UnsafeUnpin for LeanWorkerSessionConfig
impl UnwindSafe for LeanWorkerSessionConfig
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