[][src]Struct b2m::MediaInfo

pub struct MediaInfo {
    pub url: Url,
    pub title: Option<String>,
    pub referrer: Option<String>,
    pub user_agent: Option<String>,
}

Fields

url: Urltitle: Option<String>referrer: Option<String>user_agent: Option<String>

Implementations

impl MediaInfo[src]

pub fn new(url: Url, title: Option<String>, referrer: Option<String>) -> Self[src]

pub fn with_ua(
    url: Url,
    title: Option<String>,
    referrer: Option<String>,
    user_agent: Option<String>
) -> Self
[src]

pub fn default_ua(
    url: Url,
    title: Option<String>,
    referrer: Option<String>
) -> Self
[src]

pub fn play(&self) -> IoResult<()>[src]

pub fn as_command(&self) -> Command[src]

Spwans commands to run mpv

Trait Implementations

impl Debug for MediaInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.