pub struct RuntimeOptions {
pub cursor_style: CursorStyle,
pub cursor_blink: bool,
pub scrollback_lines: u32,
pub tab_width: u8,
pub convert_eol: bool,
pub screen_reader_mode: bool,
pub bracketed_paste: bool,
pub minimum_contrast_ratio_x100: u16,
pub renderer: RendererType,
pub theme: ThemePalette,
}Expand description
The complete, validated runtime option state.
Construct with RuntimeOptions::default (safe defaults) and mutate via
RuntimeOptions::apply_patch. Direct field assignment is allowed for
host-side initialisation but bypasses validation — prefer the patch API for
any host-driven mutation.
Fields§
§cursor_style: CursorStyleCursor presentation style.
cursor_blink: boolWhether the cursor blinks.
scrollback_lines: u32Scrollback retention in lines (0 = no scrollback).
tab_width: u8Tab stop width in columns (1..=16).
convert_eol: boolWhether bare LF is treated as CRLF on output (convertEol).
screen_reader_mode: boolWhether screen-reader assistive output mode is active.
bracketed_paste: boolWhether bracketed paste is enabled.
minimum_contrast_ratio_x100: u16Minimum enforced foreground/background contrast ratio, ×100
(100..=2100). 100 (1.0:1) disables enforcement.
renderer: RendererTypeActive rendering backend.
theme: ThemePaletteTheme palette.
Implementations§
Source§impl RuntimeOptions
impl RuntimeOptions
Sourcepub fn apply_patch(
&mut self,
patch: &RuntimeOptionPatch,
caps: &OptionCapabilityProfile,
correlation_id: &str,
) -> RuntimeOptionUpdate
pub fn apply_patch( &mut self, patch: &RuntimeOptionPatch, caps: &OptionCapabilityProfile, correlation_id: &str, ) -> RuntimeOptionUpdate
Apply a (sparse) patch atomically against the given capability profile.
Returns a RuntimeOptionUpdate describing the outcome. On any
validation or gating failure the update is rejected, every offending
field’s error is reported, and self is left unchanged. On success the
patch is committed atomically and the changed fields plus required
renderer/engine synchronisation are reported.
correlation_id is recorded for structured-log triage only; it does not
affect the decision.
Sourcepub fn validate(
&self,
caps: &OptionCapabilityProfile,
) -> Vec<RuntimeOptionError>
pub fn validate( &self, caps: &OptionCapabilityProfile, ) -> Vec<RuntimeOptionError>
Validate this option state against a capability profile, returning every violation. An empty vector means fully valid and supported.
Sourcepub fn web_dataset(&self) -> [(&'static str, String); 3]
pub fn web_dataset(&self) -> [(&'static str, String); 3]
Stable, ordered CSS data-attribute pairs for the browser host. Mirrors
the accessibility surface’s web_dataset() convention so generated DOM
markup is byte-for-byte reproducible.
Trait Implementations§
Source§impl Clone for RuntimeOptions
impl Clone for RuntimeOptions
Source§fn clone(&self) -> RuntimeOptions
fn clone(&self) -> RuntimeOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RuntimeOptions
Source§impl Debug for RuntimeOptions
impl Debug for RuntimeOptions
Source§impl Default for RuntimeOptions
impl Default for RuntimeOptions
impl Eq for RuntimeOptions
Source§impl PartialEq for RuntimeOptions
impl PartialEq for RuntimeOptions
Source§fn eq(&self, other: &RuntimeOptions) -> bool
fn eq(&self, other: &RuntimeOptions) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RuntimeOptions
Auto Trait Implementations§
impl Freeze for RuntimeOptions
impl RefUnwindSafe for RuntimeOptions
impl Send for RuntimeOptions
impl Sync for RuntimeOptions
impl Unpin for RuntimeOptions
impl UnsafeUnpin for RuntimeOptions
impl UnwindSafe for RuntimeOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.