pub struct ContainerExecRequest {
pub alias: String,
pub askpass: Option<String>,
pub runtime: ContainerRuntime,
pub container_id: String,
pub container_name: String,
pub command: Option<String>,
}Expand description
Pending request to drop the user into a remote container shell. Set
by the handler when Enter is pressed on a running container; drained
by handle_pending_container_exec in the main loop, which suspends
the TUI, runs ssh -t <alias> <runtime> exec -it <id> sh -c 'bash || sh', then restores the TUI on exit.
command is the full remote command. None runs the default
shell (sh -c 'bash || sh'); Some runs the user-typed exec
prompt verbatim (validated upstream. must not contain newlines).
Fields§
§alias: String§askpass: Option<String>§runtime: ContainerRuntime§container_id: String§container_name: StringHuman-readable container name (for the log line and the toast
the user sees when the session ends). Not used to build the
command. the validated container_id is what addresses the
container.
command: Option<String>User-supplied command. None falls back to the interactive
shell (sh -c 'bash || sh') used by the default Enter binding.
Some is the verbatim payload from the e exec prompt.
Trait Implementations§
Source§impl Clone for ContainerExecRequest
impl Clone for ContainerExecRequest
Source§fn clone(&self) -> ContainerExecRequest
fn clone(&self) -> ContainerExecRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ContainerExecRequest
impl RefUnwindSafe for ContainerExecRequest
impl Send for ContainerExecRequest
impl Sync for ContainerExecRequest
impl Unpin for ContainerExecRequest
impl UnsafeUnpin for ContainerExecRequest
impl UnwindSafe for ContainerExecRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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