#[non_exhaustive]pub struct DashClientConfig {
pub mpd_url: String,
pub dash: DashConfig,
pub limits: PullLimits,
}Expand description
What a DashClient is configured by: the MPD it follows, the playback
configuration and the pull limits.
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.mpd_url: StringThe MPD URL to follow.
dash: DashConfigPlayback configuration.
limits: PullLimitsBounds on what the client pulls.
Implementations§
Source§impl DashClientConfig
impl DashClientConfig
Sourcepub fn new(mpd_url: impl Into<String>) -> Self
pub fn new(mpd_url: impl Into<String>) -> Self
A config following mpd_url with default DashConfig and
PullLimits.
Sourcepub fn with_dash(self, dash: DashConfig) -> Self
pub fn with_dash(self, dash: DashConfig) -> Self
Replace DashClientConfig::dash.
Sourcepub fn with_limits(self, limits: PullLimits) -> Self
pub fn with_limits(self, limits: PullLimits) -> Self
Replace DashClientConfig::limits.
Trait Implementations§
Source§impl Clone for DashClientConfig
impl Clone for DashClientConfig
Auto Trait Implementations§
impl Forget for DashClientConfig
impl Freeze for DashClientConfig
impl Move for DashClientConfig
impl RefUnwindSafe for DashClientConfig
impl Send for DashClientConfig
impl Sync for DashClientConfig
impl Unpin for DashClientConfig
impl UnsafeUnpin for DashClientConfig
impl UnwindSafe for DashClientConfig
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