Skip to main content

Error

Type Alias Error 

Source
pub type Error<Codec> = Error<Error<<Codec as Encode>::Error, <Codec as Decode>::Error>>;
Expand description

Transport error.

Aliased Type§

pub enum Error<Codec> {
    NotInWorker,
    SendingError(JsError),
    MalformedMessage,
    TransferableError(Error<<Codec as Encode>::Error, <Codec as Decode>::Error>),
    WorkerError(Event),
    MessageError(MessageEvent),
    Other(JsError),
}

Variants§

§

NotInWorker

Ran not inside a web worker.

§

SendingError(JsError)

Error occurred during sending a message.

§

MalformedMessage

Malformed message received.

§

TransferableError(Error<<Codec as Encode>::Error, <Codec as Decode>::Error>)

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.