pub struct ContainerBackend { /* private fields */ }Expand description
ContainerBackend — runs commands inside containers.
Implementations§
Source§impl ContainerBackend
impl ContainerBackend
Sourcepub fn new(config: &ForgeConfig) -> ForgeResult<Self>
pub fn new(config: &ForgeConfig) -> ForgeResult<Self>
Create a new ContainerBackend, auto-detecting the container runtime.
Sourcepub fn runtime(&self) -> ContainerRuntime
pub fn runtime(&self) -> ContainerRuntime
Get the detected runtime.
Trait Implementations§
Source§impl ExecutionBackend for ContainerBackend
impl ExecutionBackend for ContainerBackend
fn kind(&self) -> ExecutionBackendKind
fn prepare_workspace<'life0, 'life1, 'async_trait>(
&'life0 self,
fixture: &'life1 Path,
) -> Pin<Box<dyn Future<Output = ForgeResult<Workspace>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn run_command<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'life7, 'async_trait>(
&'life0 self,
workspace: &'life1 Path,
program: &'life2 str,
args: &'life3 [&'life4 str],
env: &'life5 [(&'life6 str, &'life7 str)],
timeout_secs: u64,
) -> Pin<Box<dyn Future<Output = ForgeResult<CommandOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
'life7: 'async_trait,
fn collect_logs<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
fmt: &'life1 CommandOutput,
clippy: &'life2 CommandOutput,
test: &'life3 CommandOutput,
) -> Pin<Box<dyn Future<Output = ForgeResult<LogBundle>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Auto Trait Implementations§
impl Freeze for ContainerBackend
impl RefUnwindSafe for ContainerBackend
impl Send for ContainerBackend
impl Sync for ContainerBackend
impl Unpin for ContainerBackend
impl UnsafeUnpin for ContainerBackend
impl UnwindSafe for ContainerBackend
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