pub type WireTransfer<'de> = WireVector<'de, u8>;
Expand description
The wire type corresponding to Transfer
.
Aliased Type§
struct WireTransfer<'de> { /* private fields */ }
Implementations
§impl<T> WireVector<'_, T>
impl<T> WireVector<'_, T>
pub fn encode_present(out: &mut MaybeUninit<WireVector<'_, T>>, len: u64)
pub fn encode_present(out: &mut MaybeUninit<WireVector<'_, T>>, len: u64)
Encodes that a vector is present in a slot.
pub unsafe fn decode_raw<D>(
slot: Slot<'_, WireVector<'_, T>>,
decoder: &mut D,
) -> Result<(), DecodeError>where
D: Decoder + ?Sized,
T: Decode<D>,
pub unsafe fn decode_raw<D>(
slot: Slot<'_, WireVector<'_, T>>,
decoder: &mut D,
) -> Result<(), DecodeError>where
D: Decoder + ?Sized,
T: Decode<D>,
Decodes a wire vector which contains raw data.
§Safety
The elements of the wire vector must not need to be individually decoded, and must always be valid.
Trait Implementations
§impl<'de, T> IntoIterator for WireVector<'de, T>
impl<'de, T> IntoIterator for WireVector<'de, T>
§impl<T> Wire for WireVector<'static, T>where
T: Wire,
impl<T> Wire for WireVector<'static, T>where
T: Wire,
§type Decoded<'de> = WireVector<'de, <T as Wire>::Decoded<'de>>
type Decoded<'de> = WireVector<'de, <T as Wire>::Decoded<'de>>
The decoded wire type, restricted to the
'de
lifetime.§fn zero_padding(out: &mut MaybeUninit<WireVector<'static, T>>)
fn zero_padding(out: &mut MaybeUninit<WireVector<'static, T>>)
Writes zeroes to the padding for this type, if any.