pub struct CalibrationObservatoryState {Show 15 fields
pub version: u32,
pub title: String,
pub source: StudioSource,
pub clock_artifact: CalibrationArtifact,
pub frame_artifact: CalibrationArtifact,
pub clock: ClockCalibration,
pub frames: Vec<String>,
pub edges: Vec<FrameTransform>,
pub rejected_edge_count: u64,
pub frame_inventory_source_bound: bool,
pub root_frame: Option<String>,
pub composed: bool,
pub cycle_free: bool,
pub blockers: Vec<String>,
pub calibration_admitted: bool,
}Expand description
One portable TF/calibration observatory snapshot.
Fields§
§version: u32Serialized observatory schema version.
title: StringUser-facing observatory title.
source: StudioSourceChecksummed input identity.
clock_artifact: CalibrationArtifactClock calibration artifact receipt.
frame_artifact: CalibrationArtifactFrame calibration artifact receipt.
clock: ClockCalibrationClock diagnostics and application status.
frames: Vec<String>Source-bound frame IDs accepted by the inventory.
edges: Vec<FrameTransform>Observed transform edges.
rejected_edge_count: u64Number of edges rejected before they entered the graph.
frame_inventory_source_bound: boolWhether the frame inventory belongs to the displayed source.
root_frame: Option<String>Root selected for a composition operation, when any.
composed: boolWhether the graph has been composed for downstream use.
cycle_free: boolWhether the accepted graph is acyclic.
blockers: Vec<String>Fail-closed reasons shown by the observatory.
calibration_admitted: boolWhether clock, frame, source, and graph gates all admit calibration use.
Implementations§
Source§impl CalibrationObservatoryState
impl CalibrationObservatoryState
Sourcepub fn try_new(
title: impl Into<String>,
source: StudioSource,
clock_artifact: CalibrationArtifact,
frame_artifact: CalibrationArtifact,
clock: ClockCalibration,
frames: Vec<String>,
edges: Vec<FrameTransform>,
rejected_edge_count: u64,
frame_inventory_source_bound: bool,
root_frame: Option<String>,
composed: bool,
blockers: Vec<String>,
) -> ViewerResult<Self>
pub fn try_new( title: impl Into<String>, source: StudioSource, clock_artifact: CalibrationArtifact, frame_artifact: CalibrationArtifact, clock: ClockCalibration, frames: Vec<String>, edges: Vec<FrameTransform>, rejected_edge_count: u64, frame_inventory_source_bound: bool, root_frame: Option<String>, composed: bool, blockers: Vec<String>, ) -> ViewerResult<Self>
Creates an observatory snapshot and derives its admission decision.
Sourcepub fn validate(&self) -> ViewerResult<()>
pub fn validate(&self) -> ViewerResult<()>
Validates receipt identity, graph topology, and fail-closed admission.
Trait Implementations§
Source§impl Clone for CalibrationObservatoryState
impl Clone for CalibrationObservatoryState
Source§fn clone(&self) -> CalibrationObservatoryState
fn clone(&self) -> CalibrationObservatoryState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CalibrationObservatoryState
impl Debug for CalibrationObservatoryState
Source§impl<'de> Deserialize<'de> for CalibrationObservatoryState
impl<'de> Deserialize<'de> for CalibrationObservatoryState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for CalibrationObservatoryState
impl PartialEq for CalibrationObservatoryState
Source§fn eq(&self, other: &CalibrationObservatoryState) -> bool
fn eq(&self, other: &CalibrationObservatoryState) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CalibrationObservatoryState
Auto Trait Implementations§
impl Freeze for CalibrationObservatoryState
impl RefUnwindSafe for CalibrationObservatoryState
impl Send for CalibrationObservatoryState
impl Sync for CalibrationObservatoryState
impl Unpin for CalibrationObservatoryState
impl UnsafeUnpin for CalibrationObservatoryState
impl UnwindSafe for CalibrationObservatoryState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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