Skip to main content

DashifIngestSession

Struct DashifIngestSession 

Source
pub struct DashifIngestSession { /* private fields */ }
Expand description

Sans-IO ingest session for one DASH-IF Interface-1 publishing point.

Implementations§

Source§

impl DashifIngestSession

Source

pub fn grouping(&self) -> Option<ManifestGrouping>

The manifest grouping learned from a successful Manifest, if any.

Source

pub fn config(&self) -> DashifIngestConfig

The limits this session was configured with.

Source

pub fn new(config: DashifIngestConfig) -> Self

Construct an empty session with config. No manifest has been received yet.

Source

pub fn begin_segment( &mut self, rep: impl AsRef<str>, number: Option<u64>, time: Option<u64>, ) -> Result<SegmentHandle, SessionError>

Source

pub fn push_segment_bytes( &mut self, handle: &mut SegmentHandle, bytes: &[u8], ) -> Result<(), SessionError>

Source

pub fn finish_segment( &mut self, handle: SegmentHandle, ) -> Result<(), SessionError>

Source

pub fn abort_segment(&mut self, handle: SegmentHandle)

Discard a partially-streamed segment (P3b): drop any buffered remainder without emitting it. Chunks already published stay published.

Trait Implementations§

Source§

impl IngestSession for DashifIngestSession

Source§

type Request = !

What poll_transmit hands back — opaque to the plane, deliberately: see the module docs for why this is not a fixed enum. A byte-stream source (RTSP/RTMP/SRT/ TS-*) sets this to bytes::Bytes; a pull source sets it to its own protocol’s action type (e.g. hls_runtime::client::Action). Read more
Source§

fn poll_transmit(&mut self) -> Option<Self::Request>

The next outbound request this session wants performed — bytes written to an already-open connection, or (for a pull source) a fetch/wait action for the driver to carry out. Read more
Source§

impl Stage for DashifIngestSession

Source§

type In<'a> = IngestObject<'a>

The shape of input this stage consumes via feed. Read more
Source§

type Out = SessionEvent

The type of output this stage produces, pulled via poll.
Source§

type Error = SessionError

The error type this stage returns from feed and finish.
Source§

fn feed( &mut self, input: Self::In<'_>, _now: Timestamp, ) -> Result<(), Self::Error>

Feed more input into the stage at time now. Read more
Source§

fn poll(&mut self) -> Option<Self::Out>

Pull one unit of ready output, if any is available. Read more
Source§

fn finish(&mut self) -> Result<(), Self::Error>

Signal that no more input will ever be fed. Read more
Source§

fn demand(&self) -> Demand

A hint about how much more input this stage would like right now. Read more
Source§

fn next_deadline(&self) -> Option<Timestamp>

The next point in time (on the same clock as feed’s now) at which this stage has time-driven work to do, if any. Read more
Source§

fn on_deadline(&mut self, _now: Timestamp)

Let the stage act purely on the passage of time (no new bytes), e.g. a rate-scheduled re-emission or a timeout. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more