Skip to main content

RecordingReport

Struct RecordingReport 

Source
pub struct RecordingReport { /* private fields */ }
Expand description

What the recorder’s events have shown about a session so far.

A confirmed closure means the SDK finalized every file it opened. It says nothing about frames dropped while recording, or about the data having reached stable storage.

Implementations§

Source§

impl RecordingReport

Source

pub fn session(&self) -> u64

The session’s number, counting from one for each recorder; zero when the recorder has not started a session.

Source

pub fn closure_confirmed(&self) -> bool

Whether at least one file was reported closed, every reported open was matched by its close, and file tracking stayed complete.

A session that ends before reporting any file has no confirmed closure, even when no event was lost and no cleanup remains pending.

Source

pub fn closed_files(&self) -> u64

How many files were reported closed, including those closed by rollovers.

The SDK reports a file closed whether or not anything was written to it; see empty_files.

Source

pub fn empty_files(&self) -> u64

How many closed files were confirmed to contain no audio or video.

The SDK opens a file as soon as a session or a rollover starts, and closes it as finalized even if no frame ever reached it: a stop before the source delivered anything, a switch to a source that is not there, a rollover while the source is lost. Such a file is empty or holds only a header, and may not open in a player. A file counts here when it closed under complete tracking without a reported first frame.

The count is exact when closure_confirmed is true. Otherwise it is a lower bound: files confirmed empty before tracking became incomplete remain counted, while later closes cannot establish that a missing first-frame event was never delivered.

Always zero for a recorder that records neither audio nor video, because the SDK reports no first frame for metadata.

Source

pub fn error_events(&self) -> u64

How many open-failed and error events were seen.

Source

pub fn write_failures(&self) -> u64

How many write-failed events were seen. Not every one is fatal: a stream that appears after a file was opened is dropped until the next rollover.

Source

pub fn dropped_events(&self) -> u64

How many events the SDK discarded during the session because they were not taken in time.

Source

pub fn last_closed_path(&self) -> Option<&EventText>

The path of the file reported closed last, as the SDK gave it.

Source

pub fn stopped_by_sdk(&self) -> bool

Whether the SDK ended the session by itself, rather than because it was asked to stop.

True once the session has ended, as RecorderState::Closed or RecorderState::Indeterminate, without a stop requested through request_stop, finish, abandon or dropping the recorder. The SDK ends a session after an error it cannot recover from, such as a new file it cannot open, and at a format change when the recorder does not roll over; the report’s error_events then usually say why. A stop requested after the SDK had already stopped recording does not count as the caller’s.

False while the session is open, and for a session that ran until it was asked to stop. A closed session with this true was finalized, but did not record for as long as intended.

Trait Implementations§

Source§

impl Clone for RecordingReport

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RecordingReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for RecordingReport

Source§

impl Hash for RecordingReport

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for RecordingReport

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for RecordingReport

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.