pub struct PlayerErrorBuilder { /* private fields */ }Expand description
Builder for PlayerError.
Implementations§
Source§impl PlayerErrorBuilder
impl PlayerErrorBuilder
pub fn error_type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn code<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn code<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
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<VALUE: Into<Vec<PlayerErrorSourceLocation>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn stack<VALUE: Into<Vec<PlayerErrorSourceLocation>>>( &mut self, value: VALUE, ) -> &mut Self
A trace of where this error was caused / where it passed through.
Sourcepub fn cause<VALUE: Into<Vec<PlayerError>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn cause<VALUE: Into<Vec<PlayerError>>>( &mut self, value: VALUE, ) -> &mut Self
Errors potentially have a root cause error, ie, a DecoderError might be caused by an WindowsError
Sourcepub fn data<VALUE: Into<Json>>(&mut self, value: VALUE) -> &mut Self
pub fn data<VALUE: Into<Json>>(&mut self, value: VALUE) -> &mut Self
Extra data attached to an error, such as an HRESULT, Video Codec, etc.
Sourcepub fn build(&self) -> Result<PlayerError, PlayerErrorBuilderError>
pub fn build(&self) -> Result<PlayerError, PlayerErrorBuilderError>
Trait Implementations§
Source§impl Clone for PlayerErrorBuilder
impl Clone for PlayerErrorBuilder
Source§fn clone(&self) -> PlayerErrorBuilder
fn clone(&self) -> PlayerErrorBuilder
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 moreAuto Trait Implementations§
impl Freeze for PlayerErrorBuilder
impl RefUnwindSafe for PlayerErrorBuilder
impl Send for PlayerErrorBuilder
impl Sync for PlayerErrorBuilder
impl Unpin for PlayerErrorBuilder
impl UnsafeUnpin for PlayerErrorBuilder
impl UnwindSafe for PlayerErrorBuilder
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