#[non_exhaustive]pub struct RendererInfo {
pub id: RendererId,
pub name: String,
pub description: Option<String>,
pub status: RendererStatus,
pub connected_at: Option<DateTime<Utc>>,
pub disconnected_at: Option<DateTime<Utc>>,
pub render_target: Option<RenderTarget>,
pub render_target_schema: Option<Value>,
pub custom_actions: Option<Value>,
pub render_characteristics: Option<Value>,
pub instances: Vec<GraphicInstance>,
pub metrics: Option<RendererMetrics>,
}Expand description
A renderer as Core knows it: connected, disconnected since this process
started, or only known through a RendererDirectory.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: RendererId§name: String§description: Option<String>From hello.capabilities.description, or the directory’s.
status: RendererStatus§connected_at: Option<DateTime<Utc>>None while not connected.
disconnected_at: Option<DateTime<Utc>>Set once a session ends; None while connected or never seen.
render_target: Option<RenderTarget>The renderer’s fixed RenderTarget from hello — None for a renderer
that hasn’t connected since this process started.
render_target_schema: Option<Value>The renderer’s own declared schema for render_target, from
hello.capabilities.renderTargetSchema — None if it didn’t send
one, in which case callers fall back to a generic placeholder.
custom_actions: Option<Value>The spec’s RendererInfo.customActions, from hello.capabilities.
render_characteristics: Option<Value>The spec’s RendererInfo.renderCharacteristics, from hello.capabilities.
instances: Vec<GraphicInstance>Empty while not connected.
metrics: Option<RendererMetrics>Optional metrics for observability (extension, not part of OGraf spec). Only populated while connected.
Implementations§
Source§impl RendererInfo
impl RendererInfo
pub fn is_connected(&self) -> bool
Sourcepub fn known(renderer: &KnownRenderer) -> Self
pub fn known(renderer: &KnownRenderer) -> Self
A renderer only known through a directory — never connected since this process started.