pub struct AnyContainerExec { /* private fields */ }Expand description
Backend-agnostic container executor handle.
This wraps any ContainerExec implementation into a cloneable concrete
type that can be passed around without exposing runtime-specific concrete
executor types.
Implementations§
Source§impl AnyContainerExec
impl AnyContainerExec
Sourcepub fn new<T>(inner: Arc<T>) -> Selfwhere
T: ContainerExec + 'static,
pub fn new<T>(inner: Arc<T>) -> Selfwhere
T: ContainerExec + 'static,
Creates a new handle from a concrete container executor implementation.
Trait Implementations§
Source§impl Clone for AnyContainerExec
impl Clone for AnyContainerExec
Source§impl ContainerExec for AnyContainerExec
impl ContainerExec for AnyContainerExec
Source§fn exec(
&self,
container_id: &str,
script: &str,
working_dir: &str,
kill_rx: Receiver<()>,
stdin_rx: Receiver<Vec<u8>>,
stdin_blocked_notice: Option<Sender<String>>,
) -> impl Future<Output = Result<ContainerExecOutcome, String>> + Send
fn exec( &self, container_id: &str, script: &str, working_dir: &str, kill_rx: Receiver<()>, stdin_rx: Receiver<Vec<u8>>, stdin_blocked_notice: Option<Sender<String>>, ) -> impl Future<Output = Result<ContainerExecOutcome, String>> + Send
Execute a terminal command payload inside the container, returning stdout/stderr and exit code. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for AnyContainerExec
impl !UnwindSafe for AnyContainerExec
impl Freeze for AnyContainerExec
impl Send for AnyContainerExec
impl Sync for AnyContainerExec
impl Unpin for AnyContainerExec
impl UnsafeUnpin for AnyContainerExec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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