pub struct Context<Codec>where
Codec: Codec,{
pub codec: Codec,
pub buffer: Vec<u8>,
}Expand description
Context needed to prepare for transfer/reconstruct Wrapper.
Fields§
§codec: CodecCodec used to serialize/deserialize message.
buffer: Vec<u8>Work buffer.
Implementations§
Trait Implementations§
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<Codec> Freeze for Context<Codec>where
Codec: Freeze,
impl<Codec> RefUnwindSafe for Context<Codec>where
Codec: RefUnwindSafe,
impl<Codec> Send for Context<Codec>where
Codec: Send,
impl<Codec> Sync for Context<Codec>where
Codec: Sync,
impl<Codec> Unpin for Context<Codec>where
Codec: Unpin,
impl<Codec> UnsafeUnpin for Context<Codec>where
Codec: UnsafeUnpin,
impl<Codec> UnwindSafe for Context<Codec>where
Codec: 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