pub struct KittyState {
pub budget: usize,
/* private fields */
}Expand description
The images Map::kitty_commands has sent to the terminal: their decoded size and the
last frame that used each.
Terminals keep a limited amount of image memory, counted in decoded RGBA bytes (herdr: 64
MiB per pane; Ghostty: 320 MB) and evict on their own when it runs out, which can drop a
tile still on screen that mapterm believes is loaded. So mapterm keeps under budget
itself, freeing the least recently used images first.
Fields§
§budget: usizeMost decoded image bytes to keep in the terminal (default 48 MiB, under herdr’s 64 MiB;
MAPTERM_KITTY_BUDGET_MB overrides it in the viewer).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KittyState
impl RefUnwindSafe for KittyState
impl Send for KittyState
impl Sync for KittyState
impl Unpin for KittyState
impl UnsafeUnpin for KittyState
impl UnwindSafe for KittyState
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> 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