pub struct PlayerError { /* private fields */ }Available on crate features
experimental and Media only.Expand description
Corresponds to kMediaError
Implementations§
Source§impl PlayerError
impl PlayerError
pub fn new(type: PlayerErrorType, error_code: String) -> Self
pub fn type(&self) -> &PlayerErrorType
Sourcepub fn error_code(&self) -> &str
pub fn error_code(&self) -> &str
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§
Source§impl Clone for PlayerError
impl Clone for PlayerError
Source§fn clone(&self) -> PlayerError
fn clone(&self) -> PlayerError
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 PlayerError
impl Debug for PlayerError
Source§impl<'de> Deserialize<'de> for PlayerError
impl<'de> Deserialize<'de> for PlayerError
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 PlayerError
impl RefUnwindSafe for PlayerError
impl Send for PlayerError
impl Sync for PlayerError
impl Unpin for PlayerError
impl UnwindSafe for PlayerError
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