pub struct PlaybackSession {
pub id: String,
pub camera_id: String,
pub playlist_url: String,
pub from: DateTime<Utc>,
pub to: DateTime<Utc>,
pub duration_s: f64,
pub segment_count: usize,
}Expand description
A live playback session over a recorded time range. Returned to clients (Serialize); the durable metadata sidecar carries the extra bookkeeping fields the cleanup sweeper needs.
Fields§
§id: String§camera_id: String§playlist_url: StringHLS VOD playlist served under /media/playback/{session_id}/index.m3u8 (play with hls.js).
from: DateTime<Utc>§to: DateTime<Utc>§duration_s: f64Length of the requested window in seconds (the playlist may be shorter where footage has gaps).
segment_count: usizeTrait Implementations§
Source§impl Debug for PlaybackSession
impl Debug for PlaybackSession
Auto Trait Implementations§
impl Freeze for PlaybackSession
impl RefUnwindSafe for PlaybackSession
impl Send for PlaybackSession
impl Sync for PlaybackSession
impl Unpin for PlaybackSession
impl UnsafeUnpin for PlaybackSession
impl UnwindSafe for PlaybackSession
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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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