pub struct ClockConvertedStream { /* private fields */ }Expand description
A clock-converted stream paired with the diagnostics its conversion emits.
The conversion closure may report lossy or approximate clock mappings; those
diagnostics accumulate as packets are pulled and can be read back via
ClockConvertedStream::diagnostics.
Implementations§
Source§impl ClockConvertedStream
impl ClockConvertedStream
Sourcepub fn into_stream(self) -> Stream
pub fn into_stream(self) -> Stream
Consumes this wrapper and returns the underlying converted stream.
Sourcepub fn next_packet(&self) -> Result<Option<StreamItem>>
pub fn next_packet(&self) -> Result<Option<StreamItem>>
Pulls the next converted packet from the underlying stream.
Sourcepub fn diagnostics(&self) -> Result<Vec<Diagnostic>>
pub fn diagnostics(&self) -> Result<Vec<Diagnostic>>
Returns the diagnostics accumulated by the conversion so far.
Auto Trait Implementations§
impl !RefUnwindSafe for ClockConvertedStream
impl !UnwindSafe for ClockConvertedStream
impl Freeze for ClockConvertedStream
impl Send for ClockConvertedStream
impl Sync for ClockConvertedStream
impl Unpin for ClockConvertedStream
impl UnsafeUnpin for ClockConvertedStream
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