pub struct EnvironmentBuilder { /* private fields */ }
Expand description
A convenience builder for constructing EnvironmentDecls.
Implementations§
Source§impl EnvironmentBuilder
impl EnvironmentBuilder
pub fn new() -> Self
pub fn name(self, name: &str) -> Self
pub fn extends(self, extends: EnvironmentExtends) -> Self
pub fn runner(self, runner: RunnerRegistration) -> Self
pub fn resolver(self, resolver: ResolverRegistration) -> Self
pub fn debug(self, debug: DebugRegistration) -> Self
pub fn stop_timeout(self, timeout_ms: u32) -> Self
pub fn build(self) -> EnvironmentDecl
Trait Implementations§
Source§impl Debug for EnvironmentBuilder
impl Debug for EnvironmentBuilder
Source§impl Default for EnvironmentBuilder
impl Default for EnvironmentBuilder
Source§impl From<EnvironmentBuilder> for EnvironmentDecl
impl From<EnvironmentBuilder> for EnvironmentDecl
Source§fn from(builder: EnvironmentBuilder) -> Self
fn from(builder: EnvironmentBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EnvironmentBuilder
impl RefUnwindSafe for EnvironmentBuilder
impl Send for EnvironmentBuilder
impl Sync for EnvironmentBuilder
impl Unpin for EnvironmentBuilder
impl UnwindSafe 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