pub struct LogsView {
pub alias: String,
pub container_id: String,
pub container_name: String,
pub body: Vec<String>,
pub fetched_at: u64,
pub error: Option<String>,
pub scroll: u16,
pub last_render_height: u16,
pub search: Option<ContainerLogsSearch>,
}Expand description
Open container logs viewer. The Screen::ContainerLogs variant is
data-less; the alias/container identity and the streaming body live
here so screen transitions never clone the body Vec.
Fields§
§alias: String§container_id: String§container_name: String§body: Vec<String>Rendered lines fetched via SSH docker logs --tail. Empty while
the request is in flight, populated once the result lands.
fetched_at: u64§error: Option<String>§scroll: u16§last_render_height: u16Written by the renderer each frame so G and the result-arrival
path can compute the tail-anchored scroll without guessing the
visible-area size.
search: Option<ContainerLogsSearch>/ search state. None when no search is active.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogsView
impl RefUnwindSafe for LogsView
impl Send for LogsView
impl Sync for LogsView
impl Unpin for LogsView
impl UnsafeUnpin for LogsView
impl UnwindSafe for LogsView
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