#[non_exhaustive]pub enum PlaylistOutcome {
Ready(String),
WouldBlock,
BadRequest,
}Available on crate feature
std only.Expand description
The result of MediaStore::resolve_playlist: either the rendered
playlist is ready now, the request is malformed/abusive (RFC 8216bis
§6.2.5.2 abuse prevention — reject immediately, no wait), or the awaited
segment/part isn’t available yet (the caller should wait for the next
change notification and re-resolve).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ready(String)
The rendered media playlist body.
WouldBlock
The awaited condition (hls_msn/hls_part) isn’t satisfied yet —
wait for super::MediaStore::listen and re-resolve.
BadRequest
The request is malformed (hls_part without hls_msn) or abusive
(hls_msn unreasonably far beyond the live edge) — reject now, don’t
wait.
Trait Implementations§
Source§impl Clone for PlaylistOutcome
impl Clone for PlaylistOutcome
Source§fn clone(&self) -> PlaylistOutcome
fn clone(&self) -> PlaylistOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlaylistOutcome
impl Debug for PlaylistOutcome
impl Eq for PlaylistOutcome
Source§impl PartialEq for PlaylistOutcome
impl PartialEq for PlaylistOutcome
impl StructuralPartialEq for PlaylistOutcome
Auto Trait Implementations§
impl Freeze for PlaylistOutcome
impl RefUnwindSafe for PlaylistOutcome
impl Send for PlaylistOutcome
impl Sync for PlaylistOutcome
impl Unpin for PlaylistOutcome
impl UnsafeUnpin for PlaylistOutcome
impl UnwindSafe for PlaylistOutcome
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