Struct chrome_remote_interface_model::media::PlayerError[][src]

pub struct PlayerError { /* fields omitted */ }

Corresponds to kMediaError

Implementations

impl PlayerError[src]

pub fn new(type: PlayerErrorType, error_code: String) -> Self[src]

pub fn type(&self) -> &PlayerErrorType[src]

pub fn error_code(&self) -> &str[src]

When this switches to using media::Status instead of PipelineStatus we can remove "errorCode" and replace it with the fields from a Status instance. This also seems like a duplicate of the error level enum - there is a todo bug to have that level removed and use this instead. (crbug.com/1068454)

Trait Implementations

impl Clone for PlayerError[src]

impl Debug for PlayerError[src]

impl<'de> Deserialize<'de> for PlayerError[src]

impl Serialize for PlayerError[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.