Struct chromiumoxide::cdp::browser_protocol::media::PlayerMessage[][src]

pub struct PlayerMessage {
    pub level: PlayerMessageLevel,
    pub message: String,
}

Have one type per entry in MediaLogRecord::Type Corresponds to kMessage PlayerMessage

Fields

level: PlayerMessageLevel

Keep in sync with MediaLogMessageLevel We are currently keeping the message level ‘error’ separate from the PlayerError type because right now they represent different things, this one being a DVLOG(ERROR) style log message that gets printed based on what log level is selected in the UI, and the other is a representation of a media::PipelineStatus object. Soon however we’re going to be moving away from using PipelineStatus for errors and introducing a new error type which should hopefully let us integrate the error log level into the PlayerError type.

message: String

Implementations

impl PlayerMessage[src]

pub fn new(
    level: impl Into<PlayerMessageLevel>,
    message: impl Into<String>
) -> PlayerMessage
[src]

impl PlayerMessage[src]

impl PlayerMessage[src]

pub const IDENTIFIER: &'static str[src]

Trait Implementations

impl Clone for PlayerMessage[src]

impl Debug for PlayerMessage[src]

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

impl PartialEq<PlayerMessage> for PlayerMessage[src]

impl Serialize for PlayerMessage[src]

impl StructuralPartialEq for PlayerMessage[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> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,