pub struct PreparedOutput<M, D>(/* private fields */);Expand description
Owns the actual begun muxer and destination without publishing its header. Dropping it abandons only private preparation. Publication consumes the token.
Implementations§
Source§impl<M: Muxer, D: Destination> PreparedOutput<M, D>
impl<M: Muxer, D: Destination> PreparedOutput<M, D>
Sourcepub fn new(
mux: M,
destination: D,
tracks: &[TrackInfo],
pulse: Option<&dyn Pulse>,
) -> Result<Self, Failure>
pub fn new( mux: M, destination: D, tracks: &[TrackInfo], pulse: Option<&dyn Pulse>, ) -> Result<Self, Failure>
Require exact packet timing from the actual muxer, or fail before writing.
Sourcepub const fn timing(&self) -> MuxTiming
pub const fn timing(&self) -> MuxTiming
Timing/layout of the retained muxer. Streaming bytes do not certify safe backpressure against an upstream encoder’s raw-buffer ownership.
Sourcepub fn facts(&self) -> DestinationFacts
pub fn facts(&self) -> DestinationFacts
Facts of this exact preparation for policy and diagnostics. No bytes are written, and the prepared muxer/writer remain owned by this object.
Auto Trait Implementations§
impl<M, D> Freeze for PreparedOutput<M, D>
impl<M, D> RefUnwindSafe for PreparedOutput<M, D>where
D: RefUnwindSafe,
M: RefUnwindSafe,
impl<M, D> Send for PreparedOutput<M, D>
impl<M, D> Sync for PreparedOutput<M, D>
impl<M, D> Unpin for PreparedOutput<M, D>
impl<M, D> UnsafeUnpin for PreparedOutput<M, D>where
D: UnsafeUnpin,
M: UnsafeUnpin,
impl<M, D> UnwindSafe for PreparedOutput<M, D>where
D: UnwindSafe,
M: UnwindSafe,
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