pub struct EnvironmentBuilder { /* private fields */ }Implementations§
Source§impl EnvironmentBuilder
impl EnvironmentBuilder
pub fn workspace(self, head: WorkspaceHead) -> Self
pub fn extension<T: Any + Send + Sync>(self, value: Arc<T>) -> Self
Sourcepub fn workspace_extension<T: Any + Send + Sync>(
self,
create: impl FnOnce(&WorkspaceHead) -> Arc<T>,
) -> Result<Self, WorkspaceError>
pub fn workspace_extension<T: Any + Send + Sync>( self, create: impl FnOnce(&WorkspaceHead) -> Arc<T>, ) -> Result<Self, WorkspaceError>
Attach a typed resource constructed from the selected head.
Compute providers use this form when their process, container, or
remote mount must address the exact same head as Framework file tools.
Call workspace first.
pub fn build(self) -> Result<Environment, WorkspaceError>
Trait Implementations§
Source§impl Default for EnvironmentBuilder
impl Default for EnvironmentBuilder
Source§fn default() -> EnvironmentBuilder
fn default() -> EnvironmentBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for EnvironmentBuilder
impl !UnwindSafe for EnvironmentBuilder
impl Freeze for EnvironmentBuilder
impl Send for EnvironmentBuilder
impl Sync for EnvironmentBuilder
impl Unpin for EnvironmentBuilder
impl UnsafeUnpin for EnvironmentBuilder
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