pub struct FramesMut<'a> { /* private fields */ }Expand description
Mutate SER file frames
Implementations§
Source§impl<'a> FramesMut<'a>
impl<'a> FramesMut<'a>
Sourcepub fn format(&self) -> &FrameFormat
pub fn format(&self) -> &FrameFormat
Returns a reference to the current FrameFormat.
Sourcepub fn try_push(
&mut self,
frame: Frame,
timestamp: Option<Timestamp>,
) -> Result<(), FramePushErrors>
pub fn try_push( &mut self, frame: Frame, timestamp: Option<Timestamp>, ) -> Result<(), FramePushErrors>
Push a frame onto the frames Vec.
Frames must have a pixel format compatible with self’s FrameFormat.
Frame Timestamps MUST be specified if the SER’s datetime is set. Otherwise, they MAY NOT be specified.
Frame timestamps are in UTC
Auto Trait Implementations§
impl<'a> Freeze for FramesMut<'a>
impl<'a> RefUnwindSafe for FramesMut<'a>
impl<'a> Send for FramesMut<'a>
impl<'a> Sync for FramesMut<'a>
impl<'a> Unpin for FramesMut<'a>
impl<'a> UnsafeUnpin for FramesMut<'a>
impl<'a> !UnwindSafe for FramesMut<'a>
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> 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