pub struct PlayerError<'a> { /* private fields */ }Expand description
Corresponds to kMediaError
Implementations§
Source§impl<'a> PlayerError<'a>
impl<'a> PlayerError<'a>
Sourcepub fn builder(
error_type: impl Into<Cow<'a, str>>,
code: i64,
stack: Vec<PlayerErrorSourceLocation<'a>>,
cause: Vec<Box<PlayerError<'a>>>,
data: Map<String, JsonValue>,
) -> PlayerErrorBuilder<'a>
pub fn builder( error_type: impl Into<Cow<'a, str>>, code: i64, stack: Vec<PlayerErrorSourceLocation<'a>>, cause: Vec<Box<PlayerError<'a>>>, data: Map<String, JsonValue>, ) -> PlayerErrorBuilder<'a>
Creates a builder for this type with the required parameters:
error_type:code: Code is the numeric enum entry for a specific set of error codes, such as PipelineStatusCodes in media/base/pipeline_status.hstack: A trace of where this error was caused / where it passed through.cause: Errors potentially have a root cause error, ie, a DecoderError might be caused by an WindowsErrordata: Extra data attached to an error, such as an HRESULT, Video Codec, etc.
pub fn error_type(&self) -> &str
Sourcepub fn code(&self) -> i64
pub fn code(&self) -> i64
Code is the numeric enum entry for a specific set of error codes, such as PipelineStatusCodes in media/base/pipeline_status.h
Sourcepub fn stack(&self) -> &[PlayerErrorSourceLocation<'a>]
pub fn stack(&self) -> &[PlayerErrorSourceLocation<'a>]
A trace of where this error was caused / where it passed through.
Sourcepub fn cause(&self) -> &[Box<PlayerError<'a>>]
pub fn cause(&self) -> &[Box<PlayerError<'a>>]
Errors potentially have a root cause error, ie, a DecoderError might be caused by an WindowsError
Trait Implementations§
Source§impl<'a> Clone for PlayerError<'a>
impl<'a> Clone for PlayerError<'a>
Source§fn clone(&self) -> PlayerError<'a>
fn clone(&self) -> PlayerError<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for PlayerError<'a>
impl<'a> Debug for PlayerError<'a>
Source§impl<'a> Default for PlayerError<'a>
impl<'a> Default for PlayerError<'a>
Source§fn default() -> PlayerError<'a>
fn default() -> PlayerError<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for PlayerError<'a>
impl<'de, 'a> Deserialize<'de> for PlayerError<'a>
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<'a> Freeze for PlayerError<'a>
impl<'a> RefUnwindSafe for PlayerError<'a>
impl<'a> Send for PlayerError<'a>
impl<'a> Sync for PlayerError<'a>
impl<'a> Unpin for PlayerError<'a>
impl<'a> UnsafeUnpin for PlayerError<'a>
impl<'a> UnwindSafe for PlayerError<'a>
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