pub struct ContainerActionRequest {
pub alias: String,
pub askpass: Option<String>,
pub runtime: ContainerRuntime,
pub container_id: String,
pub container_name: String,
pub action: ContainerAction,
}Expand description
Pending non-interactive container action (restart, stop). Same shape
as ContainerExecRequest but plus an action tag and minus the askpass
handling for an interactive shell. these run in a worker thread, not
the foreground TUI. Reuses containers::ContainerAction so the
command formatter (container_action_command) is shared.
Fields§
§alias: String§askpass: Option<String>§runtime: ContainerRuntime§container_id: String§container_name: String§action: ContainerActionTrait Implementations§
Source§impl Clone for ContainerActionRequest
impl Clone for ContainerActionRequest
Source§fn clone(&self) -> ContainerActionRequest
fn clone(&self) -> ContainerActionRequest
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 moreAuto Trait Implementations§
impl Freeze for ContainerActionRequest
impl RefUnwindSafe for ContainerActionRequest
impl Send for ContainerActionRequest
impl Sync for ContainerActionRequest
impl Unpin for ContainerActionRequest
impl UnsafeUnpin for ContainerActionRequest
impl UnwindSafe for ContainerActionRequest
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> 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>
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