pub struct Observation {
pub source: FrameSourceId,
pub session: String,
pub frame: FrameMeta,
pub image: Arc<RedactedFrame>,
pub digest: Digest,
pub regions: Vec<Region>,
pub tracks: Vec<TrackId>,
pub calls: Vec<CallRecord>,
}Expand description
One processed frame, as an ObservationSink receives it.
tracked turns it into the TrackedObservation a
WatchEvaluator takes.
Fields§
§source: FrameSourceIdThe frame source.
session: StringThe source session: one per StreamPipeline::run, the scope the track identifiers
belong to and reset with (V-I8).
frame: FrameMetaThe frame’s identity and timing.
image: Arc<RedactedFrame>The redacted frame, still ephemeral: keep it through a
FrameKeeper to make it evidence.
digest: DigestThe digest of the redacted frame’s PNG encoding: the regions’ image, and the digest the frame is stored under if it is kept.
regions: Vec<Region>What the detector found, in source pixels, with the tracker’s anonymous track identifiers.
tracks: Vec<TrackId>The tracks the tracker holds after this frame, seen in it or kept through a brief
miss (Tracker::live_tracks).
calls: Vec<CallRecord>The detector’s metered calls.
Implementations§
Source§impl Observation
impl Observation
Sourcepub fn frame_ref(&self) -> FrameRef
pub fn frame_ref(&self) -> FrameRef
The frame as a watch condition names it: index, capture time, digest and size, with no artifact while the frame is ephemeral.
Sourcepub fn tracked(&self) -> TrackedObservation
pub fn tracked(&self) -> TrackedObservation
The observation as a WatchEvaluator takes it: source,
session, frame, tracked regions and the tracks the tracker still holds.
Trait Implementations§
Source§impl Clone for Observation
impl Clone for Observation
Auto Trait Implementations§
impl Forget for Observation
impl Freeze for Observationwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
*const ArcInner<RedactedFrame> is !null: Freeze,
PhantomData<ArcInner<RedactedFrame>>: Freeze,
PhantomData<Region>: Freeze,
PhantomData<TrackId>: Freeze,
PhantomData<CallRecord>: Freeze,
impl Move for Observation
impl RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl UnsafeUnpin for Observationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
*const ArcInner<RedactedFrame> is !null: UnsafeUnpin,
PhantomData<ArcInner<RedactedFrame>>: UnsafeUnpin,
PhantomData<Region>: UnsafeUnpin,
PhantomData<TrackId>: UnsafeUnpin,
PhantomData<CallRecord>: UnsafeUnpin,
impl UnwindSafe for Observationwhere
RawVecInner: UnwindSafe,
NonZero<i32>: UnwindSafe,
Utc: UnwindSafe,
Arc<RedactedFrame>: UnwindSafe,
BTreeMap<UsageUnit, u64>: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for T
impl<T> Downcast for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
impl<T> MaybeSend for Twhere
T: Send,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.