pub enum Error<SerializationError, DeserializationError> {
WrongType,
SerializationError(SerializationError),
DeserializationError(DeserializationError),
}Expand description
Wrapper error for Transferable.
Variants§
WrongType
JsValue was not of an expected type.
SerializationError(SerializationError)
Error occurred during serialization of a message.
DeserializationError(DeserializationError)
Error occurred during deserialization of a message.
Trait Implementations§
Source§impl<SerializationError: Debug, DeserializationError: Debug> Debug for Error<SerializationError, DeserializationError>
impl<SerializationError: Debug, DeserializationError: Debug> Debug for Error<SerializationError, DeserializationError>
Source§impl<SerializationError, DeserializationError> Display for Error<SerializationError, DeserializationError>
impl<SerializationError, DeserializationError> Display for Error<SerializationError, DeserializationError>
Source§impl<SerializationError, DeserializationError> Error for Error<SerializationError, DeserializationError>
impl<SerializationError, DeserializationError> Error for Error<SerializationError, DeserializationError>
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()
Source§impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Int8Arraywhere
C: Codec,
impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Int8Arraywhere
C: Codec,
Source§fn from_transferable(input: Self::Input) -> Self
fn from_transferable(input: Self::Input) -> Self
Reconstruct from Transferable data.
Source§impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Uint8Arraywhere
C: Codec,
impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Uint8Arraywhere
C: Codec,
Source§type Input = Wrapper<C, Uint8Array>
type Input = Wrapper<C, Uint8Array>
Type of input (Transferable) data.
Source§fn from_transferable(input: Self::Input) -> Self
fn from_transferable(input: Self::Input) -> Self
Reconstruct from Transferable data.
Source§impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Int16Arraywhere
C: Codec,
impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Int16Arraywhere
C: Codec,
Source§type Input = Wrapper<C, Int16Array>
type Input = Wrapper<C, Int16Array>
Type of input (Transferable) data.
Source§fn from_transferable(input: Self::Input) -> Self
fn from_transferable(input: Self::Input) -> Self
Reconstruct from Transferable data.
Source§impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Uint16Arraywhere
C: Codec,
impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Uint16Arraywhere
C: Codec,
Source§type Input = Wrapper<C, Uint16Array>
type Input = Wrapper<C, Uint16Array>
Type of input (Transferable) data.
Source§fn from_transferable(input: Self::Input) -> Self
fn from_transferable(input: Self::Input) -> Self
Reconstruct from Transferable data.
Source§impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Int32Arraywhere
C: Codec,
impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Int32Arraywhere
C: Codec,
Source§type Input = Wrapper<C, Int32Array>
type Input = Wrapper<C, Int32Array>
Type of input (Transferable) data.
Source§fn from_transferable(input: Self::Input) -> Self
fn from_transferable(input: Self::Input) -> Self
Reconstruct from Transferable data.
Source§impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Uint32Arraywhere
C: Codec,
impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Uint32Arraywhere
C: Codec,
Source§type Input = Wrapper<C, Uint32Array>
type Input = Wrapper<C, Uint32Array>
Type of input (Transferable) data.
Source§fn from_transferable(input: Self::Input) -> Self
fn from_transferable(input: Self::Input) -> Self
Reconstruct from Transferable data.
Source§impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Float16Arraywhere
C: Codec,
impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Float16Arraywhere
C: Codec,
Source§type Input = Wrapper<C, Float16Array>
type Input = Wrapper<C, Float16Array>
Type of input (Transferable) data.
Source§fn from_transferable(input: Self::Input) -> Self
fn from_transferable(input: Self::Input) -> Self
Reconstruct from Transferable data.
Source§impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Float32Arraywhere
C: Codec,
impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Float32Arraywhere
C: Codec,
Source§type Input = Wrapper<C, Float32Array>
type Input = Wrapper<C, Float32Array>
Type of input (Transferable) data.
Source§fn from_transferable(input: Self::Input) -> Self
fn from_transferable(input: Self::Input) -> Self
Reconstruct from Transferable data.
Source§impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Float64Arraywhere
C: Codec,
impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Float64Arraywhere
C: Codec,
Source§type Input = Wrapper<C, Float64Array>
type Input = Wrapper<C, Float64Array>
Type of input (Transferable) data.
Source§fn from_transferable(input: Self::Input) -> Self
fn from_transferable(input: Self::Input) -> Self
Reconstruct from Transferable data.
Source§impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for BigInt64Arraywhere
C: Codec,
impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for BigInt64Arraywhere
C: Codec,
Source§type Input = Wrapper<C, BigInt64Array>
type Input = Wrapper<C, BigInt64Array>
Type of input (Transferable) data.
Source§fn from_transferable(input: Self::Input) -> Self
fn from_transferable(input: Self::Input) -> Self
Reconstruct from Transferable data.
Source§impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for BigUint64Arraywhere
C: Codec,
impl<C> FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for BigUint64Arraywhere
C: Codec,
Source§type Input = Wrapper<C, BigUint64Array>
type Input = Wrapper<C, BigUint64Array>
Type of input (Transferable) data.
Source§fn from_transferable(input: Self::Input) -> Self
fn from_transferable(input: Self::Input) -> Self
Reconstruct from Transferable data.
Source§impl<Codec, T> FromTransferable<Context<Codec>, Error<<Codec as Encode>::Error, <Codec as Decode>::Error>> for Wrapper<Codec, T>
impl<Codec, T> FromTransferable<Context<Codec>, Error<<Codec as Encode>::Error, <Codec as Decode>::Error>> for Wrapper<Codec, T>
Source§type Input = Wrapper<Codec, T>
type Input = Wrapper<Codec, T>
Type of input (Transferable) data.
Source§fn from_transferable(input: Self::Input) -> Self
fn from_transferable(input: Self::Input) -> Self
Reconstruct from Transferable data.
Source§impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Int8Arraywhere
C: Codec,
impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Int8Arraywhere
C: Codec,
Source§fn into_transferable(self) -> Self::Output
fn into_transferable(self) -> Self::Output
Convert into Transferable data.
Source§impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Uint8Arraywhere
C: Codec,
impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Uint8Arraywhere
C: Codec,
Source§type Output = Wrapper<C, Uint8Array>
type Output = Wrapper<C, Uint8Array>
Type of output (Transferable) data.
Source§fn into_transferable(self) -> Self::Output
fn into_transferable(self) -> Self::Output
Convert into Transferable data.
Source§impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Int16Arraywhere
C: Codec,
impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Int16Arraywhere
C: Codec,
Source§type Output = Wrapper<C, Int16Array>
type Output = Wrapper<C, Int16Array>
Type of output (Transferable) data.
Source§fn into_transferable(self) -> Self::Output
fn into_transferable(self) -> Self::Output
Convert into Transferable data.
Source§impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Uint16Arraywhere
C: Codec,
impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Uint16Arraywhere
C: Codec,
Source§type Output = Wrapper<C, Uint16Array>
type Output = Wrapper<C, Uint16Array>
Type of output (Transferable) data.
Source§fn into_transferable(self) -> Self::Output
fn into_transferable(self) -> Self::Output
Convert into Transferable data.
Source§impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Int32Arraywhere
C: Codec,
impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Int32Arraywhere
C: Codec,
Source§type Output = Wrapper<C, Int32Array>
type Output = Wrapper<C, Int32Array>
Type of output (Transferable) data.
Source§fn into_transferable(self) -> Self::Output
fn into_transferable(self) -> Self::Output
Convert into Transferable data.
Source§impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Uint32Arraywhere
C: Codec,
impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Uint32Arraywhere
C: Codec,
Source§type Output = Wrapper<C, Uint32Array>
type Output = Wrapper<C, Uint32Array>
Type of output (Transferable) data.
Source§fn into_transferable(self) -> Self::Output
fn into_transferable(self) -> Self::Output
Convert into Transferable data.
Source§impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Float16Arraywhere
C: Codec,
impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Float16Arraywhere
C: Codec,
Source§type Output = Wrapper<C, Float16Array>
type Output = Wrapper<C, Float16Array>
Type of output (Transferable) data.
Source§fn into_transferable(self) -> Self::Output
fn into_transferable(self) -> Self::Output
Convert into Transferable data.
Source§impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Float32Arraywhere
C: Codec,
impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Float32Arraywhere
C: Codec,
Source§type Output = Wrapper<C, Float32Array>
type Output = Wrapper<C, Float32Array>
Type of output (Transferable) data.
Source§fn into_transferable(self) -> Self::Output
fn into_transferable(self) -> Self::Output
Convert into Transferable data.
Source§impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Float64Arraywhere
C: Codec,
impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for Float64Arraywhere
C: Codec,
Source§type Output = Wrapper<C, Float64Array>
type Output = Wrapper<C, Float64Array>
Type of output (Transferable) data.
Source§fn into_transferable(self) -> Self::Output
fn into_transferable(self) -> Self::Output
Convert into Transferable data.
Source§impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for BigInt64Arraywhere
C: Codec,
impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for BigInt64Arraywhere
C: Codec,
Source§type Output = Wrapper<C, BigInt64Array>
type Output = Wrapper<C, BigInt64Array>
Type of output (Transferable) data.
Source§fn into_transferable(self) -> Self::Output
fn into_transferable(self) -> Self::Output
Convert into Transferable data.
Source§impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for BigUint64Arraywhere
C: Codec,
impl<C> IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> for BigUint64Arraywhere
C: Codec,
Source§type Output = Wrapper<C, BigUint64Array>
type Output = Wrapper<C, BigUint64Array>
Type of output (Transferable) data.
Source§fn into_transferable(self) -> Self::Output
fn into_transferable(self) -> Self::Output
Convert into Transferable data.
Source§impl<Codec, T> IntoTransferable<Context<Codec>, Error<<Codec as Encode>::Error, <Codec as Decode>::Error>> for Wrapper<Codec, T>
impl<Codec, T> IntoTransferable<Context<Codec>, Error<<Codec as Encode>::Error, <Codec as Decode>::Error>> for Wrapper<Codec, T>
Source§type Output = Wrapper<Codec, T>
type Output = Wrapper<Codec, T>
Type of output (Transferable) data.
Source§fn into_transferable(self) -> Self::Output
fn into_transferable(self) -> Self::Output
Convert into Transferable data.
Auto Trait Implementations§
impl<SerializationError, DeserializationError> Freeze for Error<SerializationError, DeserializationError>
impl<SerializationError, DeserializationError> RefUnwindSafe for Error<SerializationError, DeserializationError>where
SerializationError: RefUnwindSafe,
DeserializationError: RefUnwindSafe,
impl<SerializationError, DeserializationError> Send for Error<SerializationError, DeserializationError>
impl<SerializationError, DeserializationError> Sync for Error<SerializationError, DeserializationError>
impl<SerializationError, DeserializationError> Unpin for Error<SerializationError, DeserializationError>
impl<SerializationError, DeserializationError> UnsafeUnpin for Error<SerializationError, DeserializationError>where
SerializationError: UnsafeUnpin,
DeserializationError: UnsafeUnpin,
impl<SerializationError, DeserializationError> UnwindSafe for Error<SerializationError, DeserializationError>where
SerializationError: UnwindSafe,
DeserializationError: 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