pub struct LocalMediaInitException { /* private fields */ }
Expand description
Exception thrown when accessing media devices.
Implementations§
Source§impl LocalMediaInitException
impl LocalMediaInitException
Sourcepub fn new<M: Into<Cow<'static, str>>>(
kind: LocalMediaInitExceptionKind,
message: M,
cause: Option<Error>,
trace: Trace,
) -> Self
pub fn new<M: Into<Cow<'static, str>>>( kind: LocalMediaInitExceptionKind, message: M, cause: Option<Error>, trace: Trace, ) -> Self
Creates a new LocalMediaInitException
from the provided error
kind
, message
, optional cause
and trace
.
Source§impl LocalMediaInitException
impl LocalMediaInitException
Sourcepub fn kind(&self) -> LocalMediaInitExceptionKind
pub fn kind(&self) -> LocalMediaInitExceptionKind
Returns concrete error kind of this LocalMediaInitException
.
Sourcepub fn cause(&self) -> Option<Error>
pub fn cause(&self) -> Option<Error>
Returns platform::Error
causing this LocalMediaInitException
.
Sourcepub fn trace(&self) -> String
pub fn trace(&self) -> String
Returns stacktrace of this LocalMediaInitException
.
Trait Implementations§
Source§impl Debug for LocalMediaInitException
impl Debug for LocalMediaInitException
Source§impl From<LocalMediaInitException> for DartError
impl From<LocalMediaInitException> for DartError
Source§fn from(err: LocalMediaInitException) -> Self
fn from(err: LocalMediaInitException) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LocalMediaInitException
impl RefUnwindSafe for LocalMediaInitException
impl !Send for LocalMediaInitException
impl !Sync for LocalMediaInitException
impl Unpin for LocalMediaInitException
impl UnwindSafe for LocalMediaInitException
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