pub struct PlayerMessage { /* private fields */ }Available on crate features
experimental and Media only.Expand description
Have one type per entry in MediaLogRecord::Type Corresponds to kMessage
Implementations§
Source§impl PlayerMessage
impl PlayerMessage
pub fn new(level: PlayerMessageLevel, message: String) -> Self
Sourcepub fn level(&self) -> &PlayerMessageLevel
pub fn level(&self) -> &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.
pub fn message(&self) -> &str
Trait Implementations§
Source§impl Clone for PlayerMessage
impl Clone for PlayerMessage
Source§fn clone(&self) -> PlayerMessage
fn clone(&self) -> PlayerMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlayerMessage
impl Debug for PlayerMessage
Source§impl<'de> Deserialize<'de> for PlayerMessage
impl<'de> Deserialize<'de> for PlayerMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PlayerMessage
impl RefUnwindSafe for PlayerMessage
impl Send for PlayerMessage
impl Sync for PlayerMessage
impl Unpin for PlayerMessage
impl UnwindSafe for PlayerMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more