pub struct DerivedSignal {
pub name: &'static str,
pub value: SignalValue,
pub ts: MonotonicTs,
}Expand description
A generic named signal produced by a perception stage.
Signals carry a name, a value, and the timestamp at which they were computed.
The name is a &'static str — signal names are fixed at compile time in
the stage implementation.
§Examples
use nv_perception::{DerivedSignal, SignalValue};
use nv_core::MonotonicTs;
let signal = DerivedSignal {
name: "scene_complexity",
value: SignalValue::Scalar(0.73),
ts: MonotonicTs::from_nanos(1_000_000),
};Fields§
§name: &'static strSignal name — compile-time constant chosen by the stage author.
value: SignalValueThe signal value.
ts: MonotonicTsTimestamp at which this signal was computed.
Trait Implementations§
Source§impl Clone for DerivedSignal
impl Clone for DerivedSignal
Source§fn clone(&self) -> DerivedSignal
fn clone(&self) -> DerivedSignal
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DerivedSignal
impl RefUnwindSafe for DerivedSignal
impl Send for DerivedSignal
impl Sync for DerivedSignal
impl Unpin for DerivedSignal
impl UnsafeUnpin for DerivedSignal
impl UnwindSafe for DerivedSignal
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