pub struct Environment<'a, C: 'static, P: Printer + 'static> { /* private fields */ }
Implementations§
Source§impl<'a, C, P> Environment<'a, C, P>
impl<'a, C, P> Environment<'a, C, P>
pub fn new( username: String, data_dir: &'a mut DataDirectory, docker: Docker<C>, printer: P, ) -> SomaResult<Environment<'a, C, P>>
pub fn username(&self) -> &NameString
pub fn printer(&self) -> RefMut<'_, P>
pub fn repo_manager(&self) -> &RepositoryManager<'a>
pub fn repo_manager_mut(&mut self) -> &mut RepositoryManager<'a>
Auto Trait Implementations§
impl<'a, C, P> !Freeze for Environment<'a, C, P>
impl<'a, C, P> !RefUnwindSafe for Environment<'a, C, P>
impl<'a, C, P> !Send for Environment<'a, C, P>
impl<'a, C, P> !Sync for Environment<'a, C, P>
impl<'a, C, P> Unpin for Environment<'a, C, P>where
P: Unpin,
impl<'a, C, P> !UnwindSafe for Environment<'a, C, P>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more