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