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

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.

The entry can be found at the given Url.

Methods

impl Entry
[src]

Whether or not the Entry is a Path.

Whether or not the Entry is a Url.

Extend the entry with extra information including the duration in seconds and a name.

Trait Implementations

impl Clone for Entry
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Entry
[src]

Formats the value using the given formatter.

impl Hash for Entry
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for Entry
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.