#[non_exhaustive]pub struct DashifIngestConfig {
pub max_object_bytes: usize,
pub max_buffered_object_bytes: usize,
pub buffered_budget_bytes: usize,
}Expand description
The limits a DASH-IF ingest host enforces on what a publisher sends. The session carries them so the host reads one policy from one place.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_object_bytes: usizeHard cap on one ingested object’s body.
max_buffered_object_bytes: usizeCap on one buffered (non-segment) object: manifests and init segments
are kilobytes and every buffered byte is held in memory until consumed,
so this is far below max_object_bytes, which bounds a streamed media
segment. The effective cap is the smaller of the two.
buffered_budget_bytes: usizeBytes of non-segment objects held buffered at once, summed over concurrent requests; a request that would exceed it is refused.
Implementations§
Source§impl DashifIngestConfig
impl DashifIngestConfig
Sourcepub fn with_max_object_bytes(self, max_object_bytes: usize) -> Self
pub fn with_max_object_bytes(self, max_object_bytes: usize) -> Self
Replace DashifIngestConfig::max_object_bytes.
Sourcepub fn with_max_buffered_object_bytes(
self,
max_buffered_object_bytes: usize,
) -> Self
pub fn with_max_buffered_object_bytes( self, max_buffered_object_bytes: usize, ) -> Self
Sourcepub fn with_buffered_budget_bytes(self, buffered_budget_bytes: usize) -> Self
pub fn with_buffered_budget_bytes(self, buffered_budget_bytes: usize) -> Self
Trait Implementations§
Source§impl Clone for DashifIngestConfig
impl Clone for DashifIngestConfig
impl Copy for DashifIngestConfig
Source§impl Debug for DashifIngestConfig
impl Debug for DashifIngestConfig
Source§impl Default for DashifIngestConfig
impl Default for DashifIngestConfig
impl Eq for DashifIngestConfig
Source§impl PartialEq for DashifIngestConfig
impl PartialEq for DashifIngestConfig
impl StructuralPartialEq for DashifIngestConfig
Auto Trait Implementations§
impl Forget for DashifIngestConfig
impl Freeze for DashifIngestConfig
impl Move for DashifIngestConfig
impl RefUnwindSafe for DashifIngestConfig
impl Send for DashifIngestConfig
impl Sync for DashifIngestConfig
impl Unpin for DashifIngestConfig
impl UnsafeUnpin for DashifIngestConfig
impl UnwindSafe for DashifIngestConfig
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