pub struct ContainerSession {
pub alias: String,
pub askpass: Option<String>,
pub runtime: Option<ContainerRuntime>,
pub containers: Vec<ContainerInfo>,
pub list_state: ListState,
pub loading: bool,
pub error: Option<String>,
pub action_in_progress: Option<String>,
pub confirm_action: Option<(ContainerAction, String, String)>,
}Expand description
Per-host overlay session state; only valid while the containers overlay is open.
No Default impl: construction always requires an alias and runtime
metadata, so a default-constructed value would be meaningless.
Fields§
§alias: String§askpass: Option<String>§runtime: Option<ContainerRuntime>§containers: Vec<ContainerInfo>§list_state: ListState§loading: bool§error: Option<String>§action_in_progress: Option<String>§confirm_action: Option<(ContainerAction, String, String)>Pending confirmation for stop/restart actions: (action, container_name, container_id).
Auto Trait Implementations§
impl Freeze for ContainerSession
impl RefUnwindSafe for ContainerSession
impl Send for ContainerSession
impl Sync for ContainerSession
impl Unpin for ContainerSession
impl UnsafeUnpin for ContainerSession
impl UnwindSafe for ContainerSession
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> 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