pub struct DashifIngestSession { /* private fields */ }Expand description
Sans-IO ingest session for one DASH-IF Interface-1 publishing point.
Implementations§
Source§impl DashifIngestSession
impl DashifIngestSession
Sourcepub fn grouping(&self) -> Option<ManifestGrouping>
pub fn grouping(&self) -> Option<ManifestGrouping>
The manifest grouping learned from a successful Manifest, if any.
Sourcepub fn config(&self) -> DashifIngestConfig
pub fn config(&self) -> DashifIngestConfig
The limits this session was configured with.
Sourcepub fn new(config: DashifIngestConfig) -> Self
pub fn new(config: DashifIngestConfig) -> Self
Construct an empty session with config. No manifest has been
received yet.
pub fn begin_segment( &mut self, rep: impl AsRef<str>, number: Option<u64>, time: Option<u64>, ) -> Result<SegmentHandle, SessionError>
pub fn push_segment_bytes( &mut self, handle: &mut SegmentHandle, bytes: &[u8], ) -> Result<(), SessionError>
pub fn finish_segment( &mut self, handle: SegmentHandle, ) -> Result<(), SessionError>
Sourcepub fn abort_segment(&mut self, handle: SegmentHandle)
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
impl IngestSession for DashifIngestSession
Source§type Request = !
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 moreSource§impl Stage for DashifIngestSession
impl Stage for DashifIngestSession
Source§type Out = SessionEvent
type Out = SessionEvent
The type of output this stage produces, pulled via
poll.Source§fn feed(
&mut self,
input: Self::In<'_>,
_now: Timestamp,
) -> Result<(), Self::Error>
fn feed( &mut self, input: Self::In<'_>, _now: Timestamp, ) -> Result<(), Self::Error>
Feed more input into the stage at time
now. Read moreSource§fn poll(&mut self) -> Option<Self::Out>
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>
fn finish(&mut self) -> Result<(), Self::Error>
Signal that no more input will ever be fed. Read more
Source§fn demand(&self) -> Demand
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>
fn next_deadline(&self) -> Option<Timestamp>
Source§fn on_deadline(&mut self, _now: Timestamp)
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§
impl Forget for DashifIngestSession
impl Freeze for DashifIngestSession
impl Move for DashifIngestSession
impl RefUnwindSafe for DashifIngestSession
impl Send for DashifIngestSession
impl Sync for DashifIngestSession
impl Unpin for DashifIngestSession
impl UnsafeUnpin for DashifIngestSession
impl UnwindSafe for DashifIngestSession
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