pub struct OptionCapabilityProfile {
pub dom: bool,
pub canvas: bool,
pub webgl: bool,
pub webgpu: bool,
pub color_depth: ColorDepth,
pub max_scrollback_lines: u32,
}Expand description
What the active rendering engine / host advertises as supported. A schema-valid option can still be gated against this profile.
Fields§
§dom: boolWhether the DOM renderer is available (effectively always true).
canvas: boolWhether the 2D canvas renderer is available.
webgl: boolWhether the WebGL renderer is available.
webgpu: boolWhether the WebGPU renderer is available.
color_depth: ColorDepthMaximum color fidelity (informational; theme colors stay host-downgraded rather than gated).
max_scrollback_lines: u32Maximum scrollback the host will retain in memory.
Implementations§
Source§impl OptionCapabilityProfile
impl OptionCapabilityProfile
Sourcepub const fn minimal() -> Self
pub const fn minimal() -> Self
A conservative default profile: DOM + Canvas only, modest scrollback.
Sourcepub const fn supports_renderer(&self, renderer: RendererType) -> bool
pub const fn supports_renderer(&self, renderer: RendererType) -> bool
Whether the requested renderer backend is available.
Trait Implementations§
Source§impl Clone for OptionCapabilityProfile
impl Clone for OptionCapabilityProfile
impl Copy for OptionCapabilityProfile
Source§impl Debug for OptionCapabilityProfile
impl Debug for OptionCapabilityProfile
Source§impl Default for OptionCapabilityProfile
impl Default for OptionCapabilityProfile
impl Eq for OptionCapabilityProfile
Source§impl PartialEq for OptionCapabilityProfile
impl PartialEq for OptionCapabilityProfile
impl StructuralPartialEq for OptionCapabilityProfile
Auto Trait Implementations§
impl Forget for OptionCapabilityProfile
impl Freeze for OptionCapabilityProfile
impl Move for OptionCapabilityProfile
impl RefUnwindSafe for OptionCapabilityProfile
impl Send for OptionCapabilityProfile
impl Sync for OptionCapabilityProfile
impl Unpin for OptionCapabilityProfile
impl UnsafeUnpin for OptionCapabilityProfile
impl UnwindSafe for OptionCapabilityProfile
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