pub enum Error {
Custom(String),
IO(Error),
JsValue(String),
ChannelSendError,
ChannelRecvError,
BorshSerialize,
BorshDeserialize(String),
IpcResponse(ResponseError),
CallbackError(CallbackError),
ChannelError(String),
}Expand description
Errors produced by the IPC subsystem.
Variants§
Custom(String)
A custom, free-form error message.
IO(Error)
Underlying I/O error.
JsValue(String)
A JavaScript exception captured as a string.
ChannelSendError
Failed to send a message over an IPC channel.
ChannelRecvError
Failed to receive a message from an IPC channel.
BorshSerialize
Borsh serialization of a message failed.
BorshDeserialize(String)
Borsh deserialization of a message failed.
IpcResponse(ResponseError)
Error contained within an IPC response.
CallbackError(CallbackError)
Error originating from a WASM callback invocation.
ChannelError(String)
Generic channel error described by a message.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CallbackError> for Error
impl From<CallbackError> for Error
Source§fn from(source: CallbackError) -> Self
fn from(source: CallbackError) -> Self
Converts to this type from the input type.
Source§impl<T> From<ChannelError<T>> for Error
impl<T> From<ChannelError<T>> for Error
Source§fn from(e: ChannelError<T>) -> Error
fn from(e: ChannelError<T>) -> Error
Converts to this type from the input type.
Source§impl From<ResponseError> for Error
impl From<ResponseError> for Error
Source§fn from(source: ResponseError) -> Self
fn from(source: ResponseError) -> Self
Converts to this type from the input type.
Source§impl<T> From<TrySendError<T>> for Error
impl<T> From<TrySendError<T>> for Error
Source§fn from(_: TrySendError<T>) -> Self
fn from(_: TrySendError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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