pub struct ContainerExecHandle { /* 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 ContainerExecHandle
impl ContainerExecHandle
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 ContainerExecHandle
impl Clone for ContainerExecHandle
Source§fn clone(&self) -> ContainerExecHandle
fn clone(&self) -> ContainerExecHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ContainerExec for ContainerExecHandle
impl ContainerExec for ContainerExecHandle
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 ContainerExecHandle
impl !UnwindSafe for ContainerExecHandle
impl Freeze for ContainerExecHandle
impl Send for ContainerExecHandle
impl Sync for ContainerExecHandle
impl Unpin for ContainerExecHandle
impl UnsafeUnpin for ContainerExecHandle
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