pub struct RecordingDownloadResult {
pub byte_count: u64,
pub duration_s: Option<f64>,
}Expand description
The result of downloading a recording stored on a camera hub with
CameraHubHandler::download_recording.
Fields§
§byte_count: u64The number of media bytes written, after decryption.
duration_s: Option<f64>The playback time the media covers, in seconds, measured between the
first and the last MPEG-TS clock reference. The H200 sends one about
every 2 s, so media after the last one is not counted and this can
fall short of what was written by up to that much. None when the
hub sent a stream without a usable clock, in which case the length of
the download is unknown.
Trait Implementations§
Source§impl Clone for RecordingDownloadResult
impl Clone for RecordingDownloadResult
Source§impl Debug for RecordingDownloadResult
impl Debug for RecordingDownloadResult
Source§impl<'de> Deserialize<'de> for RecordingDownloadResult
impl<'de> Deserialize<'de> for RecordingDownloadResult
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for RecordingDownloadResult
impl Freeze for RecordingDownloadResult
impl Move for RecordingDownloadResult
impl RefUnwindSafe for RecordingDownloadResult
impl Send for RecordingDownloadResult
impl Sync for RecordingDownloadResult
impl Unpin for RecordingDownloadResult
impl UnsafeUnpin for RecordingDownloadResult
impl UnwindSafe for RecordingDownloadResult
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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