pub struct EnvBuilder { /* private fields */ }Expand description
Builder for Env. The clock defaults to SystemClock.
Implementations§
Source§impl EnvBuilder
impl EnvBuilder
pub fn known_folder(self, folder: KnownFolder, path: impl Into<PathBuf>) -> Self
pub fn var(self, name: &str, value: impl Into<OsString>) -> Self
pub fn hostname(self, name: impl Into<String>) -> Self
pub fn clock(self, clock: impl Clock + 'static) -> Self
pub fn build(self) -> Env
Trait Implementations§
Source§impl Clone for EnvBuilder
impl Clone for EnvBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for EnvBuilder
impl !UnwindSafe for EnvBuilder
impl Forget for EnvBuilder
impl Freeze for EnvBuilder
impl Move for EnvBuilder
impl Send for EnvBuilder
impl Sync for EnvBuilder
impl Unpin for EnvBuilder
impl UnsafeUnpin for EnvBuilderwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, OsString> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, OsString)>>: UnsafeUnpin,
*const ArcInner<dyn Clock> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Clock>>: UnsafeUnpin,
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