pub enum Error<TransferableError> {
NotInWorker,
SendingError(JsError),
MalformedMessage,
TransferableError(TransferableError),
WorkerError(Event),
MessageError(MessageEvent),
Other(JsError),
}Expand description
TransferableTransport error.
Variants§
NotInWorker
Ran not inside a web worker.
SendingError(JsError)
Error occurred during sending a message.
MalformedMessage
Malformed message received.
TransferableError(TransferableError)
Failed to prepare data for transfer/reconstruct the data.
WorkerError(Event)
Error occurred in worker.
MessageError(MessageEvent)
Message error occurred.
Other(JsError)
Other error occurred.
Trait Implementations§
Source§impl<TransferableError> Display for Error<TransferableError>where
TransferableError: Display,
impl<TransferableError> Display for Error<TransferableError>where
TransferableError: Display,
Source§impl<TransferableError> Error for Error<TransferableError>
impl<TransferableError> Error for Error<TransferableError>
1.30.0 · 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()
Auto Trait Implementations§
impl<TransferableError> Freeze for Error<TransferableError>where
TransferableError: Freeze,
impl<TransferableError> RefUnwindSafe for Error<TransferableError>where
TransferableError: RefUnwindSafe,
impl<TransferableError> Send for Error<TransferableError>where
TransferableError: Send,
impl<TransferableError> Sync for Error<TransferableError>where
TransferableError: Sync,
impl<TransferableError> Unpin for Error<TransferableError>where
TransferableError: Unpin,
impl<TransferableError> UnsafeUnpin for Error<TransferableError>where
TransferableError: UnsafeUnpin,
impl<TransferableError> UnwindSafe for Error<TransferableError>where
TransferableError: UnwindSafe,
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