pub struct Total {
pub inputs: Vec<Option<Value>>,
pub outputs: Vec<Vec<Instance>>,
}Expand description
Represents a snapshot of the monitor state containing the current value of each output and input stream.
Fields§
§inputs: Vec<Option<Value>>The ith value in this vector is the current value of the ith input stream.
outputs: Vec<Vec<Instance>>The ith value in this vector is the vector of instances of the ith output stream. If the stream has no instance yet, this vector is empty. If a stream is not parameterized, the vector will always be of size 1.
Trait Implementations§
Source§impl<V, ExpectedTime, MonitorTime> AssociatedVerdictFactory<Total, MonitorTime> for Vwhere
V: FromValues<OutputTime = ExpectedTime>,
MonitorTime: TimeConversion<ExpectedTime>,
impl<V, ExpectedTime, MonitorTime> AssociatedVerdictFactory<Total, MonitorTime> for Vwhere
V: FromValues<OutputTime = ExpectedTime>,
MonitorTime: TimeConversion<ExpectedTime>,
Source§type Factory = StructVerdictFactory<V>
type Factory = StructVerdictFactory<V>
The associated factory.
Source§impl<O, I, V> NewVerdictFactory<Total, O> for StructVerdictFactory<V>
impl<O, I, V> NewVerdictFactory<Total, O> for StructVerdictFactory<V>
Source§type CreationData = ()
type CreationData = ()
A custom data type supplied when creating the factory.
Source§type CreationError = StructVerdictError
type CreationError = StructVerdictError
A custom error type returned on a failure during creation of the factory.
Source§impl<O, I, V> VerdictFactory<Total, O> for StructVerdictFactory<V>
impl<O, I, V> VerdictFactory<Total, O> for StructVerdictFactory<V>
Source§type Error = StructVerdictError
type Error = StructVerdictError
Error when converting the monitor output to the verdict.
Source§impl VerdictRepresentation for Total
impl VerdictRepresentation for Total
Source§type Tracing = NoTracer
type Tracing = NoTracer
This subtype captures the tracing capabilities of the verdict representation.
Source§fn create(data: RawVerdict<'_>) -> Self
fn create(data: RawVerdict<'_>) -> Self
Creates a snapshot of the streams values.
Source§fn is_empty(&self) -> bool
fn is_empty(&self) -> bool
Returns whether the verdict is empty. I.e. it doesn’t contain any information.
Source§fn create_with_trace(data: RawVerdict<'_>, _tracing: Self::Tracing) -> Self
fn create_with_trace(data: RawVerdict<'_>, _tracing: Self::Tracing) -> Self
Creates a snapshot of the streams values including tracing data.
impl Eq for Total
impl StructuralPartialEq for Total
Auto Trait Implementations§
impl Freeze for Total
impl RefUnwindSafe for Total
impl Send for Total
impl Sync for Total
impl Unpin for Total
impl UnwindSafe for Total
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> 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
Compare self to
key and return true if they are equal.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