pub struct CameraMetadataStore { /* private fields */ }Expand description
In-memory store implementing CameraMetadataExt keyed by ClipId.
Implementations§
Source§impl CameraMetadataStore
impl CameraMetadataStore
Sourcepub fn iter(&self) -> impl Iterator<Item = (&ClipId, &CameraMetadata)>
pub fn iter(&self) -> impl Iterator<Item = (&ClipId, &CameraMetadata)>
Returns an iterator over all (ClipId, CameraMetadata) pairs.
Trait Implementations§
Source§impl CameraMetadataExt for CameraMetadataStore
impl CameraMetadataExt for CameraMetadataStore
Source§fn set_camera_metadata(&mut self, clip_id: ClipId, meta: CameraMetadata)
fn set_camera_metadata(&mut self, clip_id: ClipId, meta: CameraMetadata)
Attaches camera metadata to a clip.
Source§fn camera_metadata(&self, clip_id: &ClipId) -> Option<&CameraMetadata>
fn camera_metadata(&self, clip_id: &ClipId) -> Option<&CameraMetadata>
Retrieves camera metadata for a clip.
Source§fn remove_camera_metadata(&mut self, clip_id: &ClipId) -> Option<CameraMetadata>
fn remove_camera_metadata(&mut self, clip_id: &ClipId) -> Option<CameraMetadata>
Removes and returns the camera metadata for a clip.
Source§impl Debug for CameraMetadataStore
impl Debug for CameraMetadataStore
Source§impl Default for CameraMetadataStore
impl Default for CameraMetadataStore
Source§fn default() -> CameraMetadataStore
fn default() -> CameraMetadataStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CameraMetadataStore
impl RefUnwindSafe for CameraMetadataStore
impl Send for CameraMetadataStore
impl Sync for CameraMetadataStore
impl Unpin for CameraMetadataStore
impl UnsafeUnpin for CameraMetadataStore
impl UnwindSafe for CameraMetadataStore
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
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