Enum m3u::Entry
[−]
[src]
pub enum Entry { Path(PathBuf), Url(Url), }
An entry in an M3U multimedia playlist.
Describes the source of the media.
In rare cases an Entry
may point to another .m3u
file. If a user wishes to support this in
their application, they must be sure to handle cycles within the M3U graph.
Variants
Path(PathBuf)
The entry resides at the given Path
.
The Path
may be either absolute or relative.
Note that the Path
may also point to a directory. After starting, the media player would
play all contents of the directory.
Url(Url)
The entry can be found at the given Url
.
Methods
impl Entry
[src]
fn is_path(&self) -> bool
Whether or not the Entry
is a Path
.
fn is_url(&self) -> bool
Whether or not the Entry
is a Url
.
fn extend<N>(self, duration_secs: f64, name: N) -> EntryExt where
N: Into<String>,
N: Into<String>,
Extend the entry with extra information including the duration in seconds and a name.
Trait Implementations
impl Clone for Entry
[src]
fn clone(&self) -> Entry
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Entry
[src]
impl Hash for Entry
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more