pub trait AsyncVariableWriter: AsyncVariableWritable {
Show 143 methods
// Provided methods
fn write_single(&mut self, byte: u8) -> WriteSingle<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_more<'a>(&'a mut self, buf: &'a [u8]) -> WriteMore<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_more_buf<'a, B: Buf>(
&'a mut self,
buf: &'a mut B
) -> WriteMoreBuf<'_, Self, B> ⓘ
where Self: Unpin { ... }
fn write_bool(&mut self, value: bool) -> WriteBool<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_bools_2(&mut self, value: [bool; 2]) -> WriteBools2<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_bools_3(&mut self, value: [bool; 3]) -> WriteBools3<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_bools_4(&mut self, value: [bool; 4]) -> WriteBools4<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_bools_5(&mut self, value: [bool; 5]) -> WriteBools5<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_bools_6(&mut self, value: [bool; 6]) -> WriteBools6<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_bools_7(&mut self, value: [bool; 7]) -> WriteBools7<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_bools_8(&mut self, value: [bool; 8]) -> WriteBools8<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u8_raw(&mut self, value: u8) -> WriteU8Raw<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i8_raw(&mut self, value: i8) -> WriteI8Raw<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u16_raw_le(&mut self, value: u16) -> WriteU16RawLe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u16_raw_be(&mut self, value: u16) -> WriteU16RawBe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i16_raw_le(&mut self, value: i16) -> WriteI16RawLe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i16_raw_be(&mut self, value: i16) -> WriteI16RawBe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u32_raw_le(&mut self, value: u32) -> WriteU32RawLe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u32_raw_be(&mut self, value: u32) -> WriteU32RawBe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i32_raw_le(&mut self, value: i32) -> WriteI32RawLe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i32_raw_be(&mut self, value: i32) -> WriteI32RawBe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u64_raw_le(&mut self, value: u64) -> WriteU64RawLe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u64_raw_be(&mut self, value: u64) -> WriteU64RawBe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i64_raw_le(&mut self, value: i64) -> WriteI64RawLe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i64_raw_be(&mut self, value: i64) -> WriteI64RawBe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u128_raw_le(&mut self, value: u128) -> WriteU128RawLe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u128_raw_be(&mut self, value: u128) -> WriteU128RawBe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i128_raw_le(&mut self, value: i128) -> WriteI128RawLe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i128_raw_be(&mut self, value: i128) -> WriteI128RawBe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_f32_raw_le(&mut self, value: f32) -> WriteF32RawLe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_f32_raw_be(&mut self, value: f32) -> WriteF32RawBe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_f64_raw_le(&mut self, value: f64) -> WriteF64RawLe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_f64_raw_be(&mut self, value: f64) -> WriteF64RawBe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_raw_le(&mut self, value: usize) -> WriteUsizeRawLe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_raw_be(&mut self, value: usize) -> WriteUsizeRawBe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_raw_le(&mut self, value: isize) -> WriteIsizeRawLe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_raw_be(&mut self, value: isize) -> WriteIsizeRawBe<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_raw_le_ap(
&mut self,
value: usize
) -> WriteUsizeRawLeAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_raw_be_ap(
&mut self,
value: usize
) -> WriteUsizeRawBeAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_raw_le_ap(
&mut self,
value: isize
) -> WriteIsizeRawLeAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_raw_be_ap(
&mut self,
value: isize
) -> WriteIsizeRawBeAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u16_varint(&mut self, value: u16) -> WriteU16Varint<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u32_varint(&mut self, value: u32) -> WriteU32Varint<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u64_varint(&mut self, value: u64) -> WriteU64Varint<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u128_varint(&mut self, value: u128) -> WriteU128Varint<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_varint(&mut self, value: usize) -> WriteUsizeVarint<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_varint_ap(
&mut self,
value: usize
) -> WriteUsizeVarintAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u8_varint(&mut self, value: u8) -> WriteU8Varint<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u16_varint_2_le(
&mut self,
value: u16
) -> WriteU16Varint2Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u16_varint_2_be(
&mut self,
value: u16
) -> WriteU16Varint2Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u32_varint_2_le(
&mut self,
value: u32
) -> WriteU32Varint2Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u32_varint_2_be(
&mut self,
value: u32
) -> WriteU32Varint2Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u32_varint_4_le(
&mut self,
value: u32
) -> WriteU32Varint4Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u32_varint_4_be(
&mut self,
value: u32
) -> WriteU32Varint4Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u64_varint_2_le(
&mut self,
value: u64
) -> WriteU64Varint2Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u64_varint_2_be(
&mut self,
value: u64
) -> WriteU64Varint2Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u64_varint_4_le(
&mut self,
value: u64
) -> WriteU64Varint4Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u64_varint_4_be(
&mut self,
value: u64
) -> WriteU64Varint4Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u64_varint_8_le(
&mut self,
value: u64
) -> WriteU64Varint8Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u64_varint_8_be(
&mut self,
value: u64
) -> WriteU64Varint8Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u128_varint_2_le(
&mut self,
value: u128
) -> WriteU128Varint2Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u128_varint_2_be(
&mut self,
value: u128
) -> WriteU128Varint2Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u128_varint_4_le(
&mut self,
value: u128
) -> WriteU128Varint4Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u128_varint_4_be(
&mut self,
value: u128
) -> WriteU128Varint4Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u128_varint_8_le(
&mut self,
value: u128
) -> WriteU128Varint8Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u128_varint_8_be(
&mut self,
value: u128
) -> WriteU128Varint8Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u128_varint_16_le(
&mut self,
value: u128
) -> WriteU128Varint16Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u128_varint_16_be(
&mut self,
value: u128
) -> WriteU128Varint16Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_varint_2_le(
&mut self,
value: usize
) -> WriteUsizeVarint2Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_varint_2_be(
&mut self,
value: usize
) -> WriteUsizeVarint2Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_varint_4_le(
&mut self,
value: usize
) -> WriteUsizeVarint4Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_varint_4_be(
&mut self,
value: usize
) -> WriteUsizeVarint4Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_varint_8_le(
&mut self,
value: usize
) -> WriteUsizeVarint8Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_varint_8_be(
&mut self,
value: usize
) -> WriteUsizeVarint8Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_varint_16_le(
&mut self,
value: usize
) -> WriteUsizeVarint16Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_varint_16_be(
&mut self,
value: usize
) -> WriteUsizeVarint16Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_varint_2_le_ap(
&mut self,
value: usize
) -> WriteUsizeVarint2LeAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_varint_2_be_ap(
&mut self,
value: usize
) -> WriteUsizeVarint2BeAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_varint_4_le_ap(
&mut self,
value: usize
) -> WriteUsizeVarint4LeAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_varint_4_be_ap(
&mut self,
value: usize
) -> WriteUsizeVarint4BeAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_varint_8_le_ap(
&mut self,
value: usize
) -> WriteUsizeVarint8LeAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_varint_8_be_ap(
&mut self,
value: usize
) -> WriteUsizeVarint8BeAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_varint_16_le_ap(
&mut self,
value: usize
) -> WriteUsizeVarint16LeAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_usize_varint_16_be_ap(
&mut self,
value: usize
) -> WriteUsizeVarint16BeAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i16_varint(&mut self, value: i16) -> WriteI16Varint<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i32_varint(&mut self, value: i32) -> WriteI32Varint<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i64_varint(&mut self, value: i64) -> WriteI64Varint<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i128_varint(&mut self, value: i128) -> WriteI128Varint<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_varint(&mut self, value: isize) -> WriteIsizeVarint<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_varint_ap(
&mut self,
value: isize
) -> WriteIsizeVarintAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i8_varint(&mut self, value: i8) -> WriteI8Varint<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i16_varint_2_le(
&mut self,
value: i16
) -> WriteI16Varint2Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i16_varint_2_be(
&mut self,
value: i16
) -> WriteI16Varint2Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i32_varint_2_le(
&mut self,
value: i32
) -> WriteI32Varint2Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i32_varint_2_be(
&mut self,
value: i32
) -> WriteI32Varint2Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i32_varint_4_le(
&mut self,
value: i32
) -> WriteI32Varint4Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i32_varint_4_be(
&mut self,
value: i32
) -> WriteI32Varint4Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i64_varint_2_le(
&mut self,
value: i64
) -> WriteI64Varint2Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i64_varint_2_be(
&mut self,
value: i64
) -> WriteI64Varint2Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i64_varint_4_le(
&mut self,
value: i64
) -> WriteI64Varint4Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i64_varint_4_be(
&mut self,
value: i64
) -> WriteI64Varint4Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i64_varint_8_le(
&mut self,
value: i64
) -> WriteI64Varint8Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i64_varint_8_be(
&mut self,
value: i64
) -> WriteI64Varint8Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i128_varint_2_le(
&mut self,
value: i128
) -> WriteI128Varint2Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i128_varint_2_be(
&mut self,
value: i128
) -> WriteI128Varint2Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i128_varint_4_le(
&mut self,
value: i128
) -> WriteI128Varint4Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i128_varint_4_be(
&mut self,
value: i128
) -> WriteI128Varint4Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i128_varint_8_le(
&mut self,
value: i128
) -> WriteI128Varint8Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i128_varint_8_be(
&mut self,
value: i128
) -> WriteI128Varint8Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i128_varint_16_le(
&mut self,
value: i128
) -> WriteI128Varint16Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_i128_varint_16_be(
&mut self,
value: i128
) -> WriteI128Varint16Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_varint_2_le(
&mut self,
value: isize
) -> WriteIsizeVarint2Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_varint_2_be(
&mut self,
value: isize
) -> WriteIsizeVarint2Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_varint_4_le(
&mut self,
value: isize
) -> WriteIsizeVarint4Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_varint_4_be(
&mut self,
value: isize
) -> WriteIsizeVarint4Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_varint_8_le(
&mut self,
value: isize
) -> WriteIsizeVarint8Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_varint_8_be(
&mut self,
value: isize
) -> WriteIsizeVarint8Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_varint_16_le(
&mut self,
value: isize
) -> WriteIsizeVarint16Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_varint_16_be(
&mut self,
value: isize
) -> WriteIsizeVarint16Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_varint_2_le_ap(
&mut self,
value: isize
) -> WriteIsizeVarint2LeAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_varint_2_be_ap(
&mut self,
value: isize
) -> WriteIsizeVarint2BeAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_varint_4_le_ap(
&mut self,
value: isize
) -> WriteIsizeVarint4LeAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_varint_4_be_ap(
&mut self,
value: isize
) -> WriteIsizeVarint4BeAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_varint_8_le_ap(
&mut self,
value: isize
) -> WriteIsizeVarint8LeAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_varint_8_be_ap(
&mut self,
value: isize
) -> WriteIsizeVarint8BeAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_varint_16_le_ap(
&mut self,
value: isize
) -> WriteIsizeVarint16LeAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_isize_varint_16_be_ap(
&mut self,
value: isize
) -> WriteIsizeVarint16BeAp<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_f32_varint(&mut self, value: f32) -> WriteF32Varint<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_f64_varint(&mut self, value: f64) -> WriteF64Varint<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_f32_varint_2_le(
&mut self,
value: f32
) -> WriteF32Varint2Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_f32_varint_2_be(
&mut self,
value: f32
) -> WriteF32Varint2Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_f32_varint_4_le(
&mut self,
value: f32
) -> WriteF32Varint4Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_f32_varint_4_be(
&mut self,
value: f32
) -> WriteF32Varint4Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_f64_varint_2_le(
&mut self,
value: f64
) -> WriteF64Varint2Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_f64_varint_2_be(
&mut self,
value: f64
) -> WriteF64Varint2Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_f64_varint_4_le(
&mut self,
value: f64
) -> WriteF64Varint4Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_f64_varint_4_be(
&mut self,
value: f64
) -> WriteF64Varint4Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_f64_varint_8_le(
&mut self,
value: f64
) -> WriteF64Varint8Le<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_f64_varint_8_be(
&mut self,
value: f64
) -> WriteF64Varint8Be<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u8_vec(&mut self, value: Vec<u8>) -> WriteU8Vec<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_u8_vec_boxed<'a>(
&'a mut self,
value: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'a>>
where Self: Unpin + Send { ... }
fn write_string(&mut self, value: String) -> WriteString<'_, Self> ⓘ
where Self: Unpin { ... }
fn write_string_boxed<'a>(
&'a mut self,
value: &'a str
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'a>>
where Self: Unpin + Send { ... }
}
Available on crate feature
async
only.Provided Methods§
fn write_single(&mut self, byte: u8) -> WriteSingle<'_, Self> ⓘwhere
Self: Unpin,
fn write_more<'a>(&'a mut self, buf: &'a [u8]) -> WriteMore<'_, Self> ⓘwhere
Self: Unpin,
fn write_more_buf<'a, B: Buf>(
&'a mut self,
buf: &'a mut B
) -> WriteMoreBuf<'_, Self, B> ⓘwhere
Self: Unpin,
Available on crate feature
bytes
only.fn write_bool(&mut self, value: bool) -> WriteBool<'_, Self> ⓘwhere
Self: Unpin,
fn write_bools_2(&mut self, value: [bool; 2]) -> WriteBools2<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_bools
only.fn write_bools_3(&mut self, value: [bool; 3]) -> WriteBools3<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_bools
only.fn write_bools_4(&mut self, value: [bool; 4]) -> WriteBools4<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_bools
only.fn write_bools_5(&mut self, value: [bool; 5]) -> WriteBools5<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_bools
only.fn write_bools_6(&mut self, value: [bool; 6]) -> WriteBools6<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_bools
only.fn write_bools_7(&mut self, value: [bool; 7]) -> WriteBools7<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_bools
only.fn write_bools_8(&mut self, value: [bool; 8]) -> WriteBools8<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_bools
only.fn write_u8_raw(&mut self, value: u8) -> WriteU8Raw<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_i8_raw(&mut self, value: i8) -> WriteI8Raw<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_u16_raw_le(&mut self, value: u16) -> WriteU16RawLe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_u16_raw_be(&mut self, value: u16) -> WriteU16RawBe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_i16_raw_le(&mut self, value: i16) -> WriteI16RawLe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_i16_raw_be(&mut self, value: i16) -> WriteI16RawBe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_u32_raw_le(&mut self, value: u32) -> WriteU32RawLe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_u32_raw_be(&mut self, value: u32) -> WriteU32RawBe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_i32_raw_le(&mut self, value: i32) -> WriteI32RawLe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_i32_raw_be(&mut self, value: i32) -> WriteI32RawBe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_u64_raw_le(&mut self, value: u64) -> WriteU64RawLe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_u64_raw_be(&mut self, value: u64) -> WriteU64RawBe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_i64_raw_le(&mut self, value: i64) -> WriteI64RawLe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_i64_raw_be(&mut self, value: i64) -> WriteI64RawBe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_u128_raw_le(&mut self, value: u128) -> WriteU128RawLe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_u128_raw_be(&mut self, value: u128) -> WriteU128RawBe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_i128_raw_le(&mut self, value: i128) -> WriteI128RawLe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_i128_raw_be(&mut self, value: i128) -> WriteI128RawBe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_f32_raw_le(&mut self, value: f32) -> WriteF32RawLe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_f32_raw_be(&mut self, value: f32) -> WriteF32RawBe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_f64_raw_le(&mut self, value: f64) -> WriteF64RawLe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_f64_raw_be(&mut self, value: f64) -> WriteF64RawBe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw
only.fn write_usize_raw_le(&mut self, value: usize) -> WriteUsizeRawLe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw_size
only.fn write_usize_raw_be(&mut self, value: usize) -> WriteUsizeRawBe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw_size
only.fn write_isize_raw_le(&mut self, value: isize) -> WriteIsizeRawLe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw_size
only.fn write_isize_raw_be(&mut self, value: isize) -> WriteIsizeRawBe<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw_size
only.fn write_usize_raw_le_ap(&mut self, value: usize) -> WriteUsizeRawLeAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw_size
only.fn write_usize_raw_be_ap(&mut self, value: usize) -> WriteUsizeRawBeAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw_size
only.fn write_isize_raw_le_ap(&mut self, value: isize) -> WriteIsizeRawLeAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw_size
only.fn write_isize_raw_be_ap(&mut self, value: isize) -> WriteIsizeRawBeAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_raw_size
only.fn write_u16_varint(&mut self, value: u16) -> WriteU16Varint<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint
only.fn write_u32_varint(&mut self, value: u32) -> WriteU32Varint<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint
only.fn write_u64_varint(&mut self, value: u64) -> WriteU64Varint<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint
only.fn write_u128_varint(&mut self, value: u128) -> WriteU128Varint<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint
only.fn write_usize_varint(&mut self, value: usize) -> WriteUsizeVarint<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_size
only.fn write_usize_varint_ap(
&mut self,
value: usize
) -> WriteUsizeVarintAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_size
only.fn write_u8_varint(&mut self, value: u8) -> WriteU8Varint<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long
only.fn write_u16_varint_2_le(&mut self, value: u16) -> WriteU16Varint2Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long
only.fn write_u16_varint_2_be(&mut self, value: u16) -> WriteU16Varint2Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long
only.fn write_u32_varint_2_le(&mut self, value: u32) -> WriteU32Varint2Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long
only.fn write_u32_varint_2_be(&mut self, value: u32) -> WriteU32Varint2Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long
only.fn write_u32_varint_4_le(&mut self, value: u32) -> WriteU32Varint4Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long
only.fn write_u32_varint_4_be(&mut self, value: u32) -> WriteU32Varint4Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long
only.fn write_u64_varint_2_le(&mut self, value: u64) -> WriteU64Varint2Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long
only.fn write_u64_varint_2_be(&mut self, value: u64) -> WriteU64Varint2Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long
only.fn write_u64_varint_4_le(&mut self, value: u64) -> WriteU64Varint4Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long
only.fn write_u64_varint_4_be(&mut self, value: u64) -> WriteU64Varint4Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long
only.fn write_u64_varint_8_le(&mut self, value: u64) -> WriteU64Varint8Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long
only.fn write_u64_varint_8_be(&mut self, value: u64) -> WriteU64Varint8Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long
only.fn write_u128_varint_2_le(
&mut self,
value: u128
) -> WriteU128Varint2Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long
only.fn write_u128_varint_2_be(
&mut self,
value: u128
) -> WriteU128Varint2Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long
only.fn write_u128_varint_4_le(
&mut self,
value: u128
) -> WriteU128Varint4Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long
only.fn write_u128_varint_4_be(
&mut self,
value: u128
) -> WriteU128Varint4Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long
only.fn write_u128_varint_8_le(
&mut self,
value: u128
) -> WriteU128Varint8Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long
only.fn write_u128_varint_8_be(
&mut self,
value: u128
) -> WriteU128Varint8Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long
only.fn write_u128_varint_16_le(
&mut self,
value: u128
) -> WriteU128Varint16Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long
only.fn write_u128_varint_16_be(
&mut self,
value: u128
) -> WriteU128Varint16Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long
only.fn write_usize_varint_2_le(
&mut self,
value: usize
) -> WriteUsizeVarint2Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long_size
only.fn write_usize_varint_2_be(
&mut self,
value: usize
) -> WriteUsizeVarint2Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long_size
only.fn write_usize_varint_4_le(
&mut self,
value: usize
) -> WriteUsizeVarint4Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long_size
only.fn write_usize_varint_4_be(
&mut self,
value: usize
) -> WriteUsizeVarint4Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long_size
only.fn write_usize_varint_8_le(
&mut self,
value: usize
) -> WriteUsizeVarint8Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long_size
only.fn write_usize_varint_8_be(
&mut self,
value: usize
) -> WriteUsizeVarint8Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long_size
only.fn write_usize_varint_16_le(
&mut self,
value: usize
) -> WriteUsizeVarint16Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long_size
only.fn write_usize_varint_16_be(
&mut self,
value: usize
) -> WriteUsizeVarint16Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long_size
only.fn write_usize_varint_2_le_ap(
&mut self,
value: usize
) -> WriteUsizeVarint2LeAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long_size
only.fn write_usize_varint_2_be_ap(
&mut self,
value: usize
) -> WriteUsizeVarint2BeAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long_size
only.fn write_usize_varint_4_le_ap(
&mut self,
value: usize
) -> WriteUsizeVarint4LeAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long_size
only.fn write_usize_varint_4_be_ap(
&mut self,
value: usize
) -> WriteUsizeVarint4BeAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long_size
only.fn write_usize_varint_8_le_ap(
&mut self,
value: usize
) -> WriteUsizeVarint8LeAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long_size
only.fn write_usize_varint_8_be_ap(
&mut self,
value: usize
) -> WriteUsizeVarint8BeAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long_size
only.fn write_usize_varint_16_le_ap(
&mut self,
value: usize
) -> WriteUsizeVarint16LeAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long_size
only.fn write_usize_varint_16_be_ap(
&mut self,
value: usize
) -> WriteUsizeVarint16BeAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_varint_long_size
only.fn write_i16_varint(&mut self, value: i16) -> WriteI16Varint<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint
only.fn write_i32_varint(&mut self, value: i32) -> WriteI32Varint<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint
only.fn write_i64_varint(&mut self, value: i64) -> WriteI64Varint<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint
only.fn write_i128_varint(&mut self, value: i128) -> WriteI128Varint<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint
only.fn write_isize_varint(&mut self, value: isize) -> WriteIsizeVarint<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_size
only.fn write_isize_varint_ap(
&mut self,
value: isize
) -> WriteIsizeVarintAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_size
only.fn write_i8_varint(&mut self, value: i8) -> WriteI8Varint<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long
only.fn write_i16_varint_2_le(&mut self, value: i16) -> WriteI16Varint2Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long
only.fn write_i16_varint_2_be(&mut self, value: i16) -> WriteI16Varint2Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long
only.fn write_i32_varint_2_le(&mut self, value: i32) -> WriteI32Varint2Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long
only.fn write_i32_varint_2_be(&mut self, value: i32) -> WriteI32Varint2Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long
only.fn write_i32_varint_4_le(&mut self, value: i32) -> WriteI32Varint4Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long
only.fn write_i32_varint_4_be(&mut self, value: i32) -> WriteI32Varint4Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long
only.fn write_i64_varint_2_le(&mut self, value: i64) -> WriteI64Varint2Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long
only.fn write_i64_varint_2_be(&mut self, value: i64) -> WriteI64Varint2Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long
only.fn write_i64_varint_4_le(&mut self, value: i64) -> WriteI64Varint4Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long
only.fn write_i64_varint_4_be(&mut self, value: i64) -> WriteI64Varint4Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long
only.fn write_i64_varint_8_le(&mut self, value: i64) -> WriteI64Varint8Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long
only.fn write_i64_varint_8_be(&mut self, value: i64) -> WriteI64Varint8Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long
only.fn write_i128_varint_2_le(
&mut self,
value: i128
) -> WriteI128Varint2Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long
only.fn write_i128_varint_2_be(
&mut self,
value: i128
) -> WriteI128Varint2Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long
only.fn write_i128_varint_4_le(
&mut self,
value: i128
) -> WriteI128Varint4Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long
only.fn write_i128_varint_4_be(
&mut self,
value: i128
) -> WriteI128Varint4Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long
only.fn write_i128_varint_8_le(
&mut self,
value: i128
) -> WriteI128Varint8Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long
only.fn write_i128_varint_8_be(
&mut self,
value: i128
) -> WriteI128Varint8Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long
only.fn write_i128_varint_16_le(
&mut self,
value: i128
) -> WriteI128Varint16Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long
only.fn write_i128_varint_16_be(
&mut self,
value: i128
) -> WriteI128Varint16Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long
only.fn write_isize_varint_2_le(
&mut self,
value: isize
) -> WriteIsizeVarint2Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long_size
only.fn write_isize_varint_2_be(
&mut self,
value: isize
) -> WriteIsizeVarint2Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long_size
only.fn write_isize_varint_4_le(
&mut self,
value: isize
) -> WriteIsizeVarint4Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long_size
only.fn write_isize_varint_4_be(
&mut self,
value: isize
) -> WriteIsizeVarint4Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long_size
only.fn write_isize_varint_8_le(
&mut self,
value: isize
) -> WriteIsizeVarint8Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long_size
only.fn write_isize_varint_8_be(
&mut self,
value: isize
) -> WriteIsizeVarint8Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long_size
only.fn write_isize_varint_16_le(
&mut self,
value: isize
) -> WriteIsizeVarint16Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long_size
only.fn write_isize_varint_16_be(
&mut self,
value: isize
) -> WriteIsizeVarint16Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long_size
only.fn write_isize_varint_2_le_ap(
&mut self,
value: isize
) -> WriteIsizeVarint2LeAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long_size
only.fn write_isize_varint_2_be_ap(
&mut self,
value: isize
) -> WriteIsizeVarint2BeAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long_size
only.fn write_isize_varint_4_le_ap(
&mut self,
value: isize
) -> WriteIsizeVarint4LeAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long_size
only.fn write_isize_varint_4_be_ap(
&mut self,
value: isize
) -> WriteIsizeVarint4BeAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long_size
only.fn write_isize_varint_8_le_ap(
&mut self,
value: isize
) -> WriteIsizeVarint8LeAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long_size
only.fn write_isize_varint_8_be_ap(
&mut self,
value: isize
) -> WriteIsizeVarint8BeAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long_size
only.fn write_isize_varint_16_le_ap(
&mut self,
value: isize
) -> WriteIsizeVarint16LeAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long_size
only.fn write_isize_varint_16_be_ap(
&mut self,
value: isize
) -> WriteIsizeVarint16BeAp<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_signed_varint_long_size
only.fn write_f32_varint(&mut self, value: f32) -> WriteF32Varint<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_float_varint
only.fn write_f64_varint(&mut self, value: f64) -> WriteF64Varint<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_float_varint
only.fn write_f32_varint_2_le(&mut self, value: f32) -> WriteF32Varint2Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_float_varint_long
only.fn write_f32_varint_2_be(&mut self, value: f32) -> WriteF32Varint2Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_float_varint_long
only.fn write_f32_varint_4_le(&mut self, value: f32) -> WriteF32Varint4Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_float_varint_long
only.fn write_f32_varint_4_be(&mut self, value: f32) -> WriteF32Varint4Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_float_varint_long
only.fn write_f64_varint_2_le(&mut self, value: f64) -> WriteF64Varint2Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_float_varint_long
only.fn write_f64_varint_2_be(&mut self, value: f64) -> WriteF64Varint2Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_float_varint_long
only.fn write_f64_varint_4_le(&mut self, value: f64) -> WriteF64Varint4Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_float_varint_long
only.fn write_f64_varint_4_be(&mut self, value: f64) -> WriteF64Varint4Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_float_varint_long
only.fn write_f64_varint_8_le(&mut self, value: f64) -> WriteF64Varint8Le<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_float_varint_long
only.fn write_f64_varint_8_be(&mut self, value: f64) -> WriteF64Varint8Be<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature
async_float_varint_long
only.sourcefn write_u8_vec(&mut self, value: Vec<u8>) -> WriteU8Vec<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature async_u8_vec
only.
fn write_u8_vec(&mut self, value: Vec<u8>) -> WriteU8Vec<'_, Self> ⓘwhere
Self: Unpin,
async_u8_vec
only.This method consumes the vec.
You can use the example instead.
ⓘ
writer.write_usize_varint_ap(value.len()).await?;
writer.write_more(value).await?;
Or you can simply call Self::write_u8_vec_boxed instead.
ⓘ
writer.write_u8_vec_boxed(&value).await?;
Now you can call
ⓘ
AsyncWriterHelper(&mut writer).help_write_u8_vec().await?;
sourcefn write_u8_vec_boxed<'a>(
&'a mut self,
value: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'a>>
👎Deprecated since 3.2.0: use [AsyncWriterHelper::help_write_u8_vec] insteadAvailable on crate feature async_u8_vec
only.
fn write_u8_vec_boxed<'a>( &'a mut self, value: &'a [u8] ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'a>>
async_u8_vec
only.This future is not zero-cost. But it borrows the vec, different from Self::write_u8_vec.
sourcefn write_string(&mut self, value: String) -> WriteString<'_, Self> ⓘwhere
Self: Unpin,
Available on crate feature async_string
only.
fn write_string(&mut self, value: String) -> WriteString<'_, Self> ⓘwhere
Self: Unpin,
async_string
only.This method is based on Self::write_u8_vec, which consumes the value.
Or you can simply call Self::write_string_boxed instead.
Now you can call
ⓘ
AsyncWriterHelper(&mut writer).help_write_string().await?;
fn write_string_boxed<'a>( &'a mut self, value: &'a str ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'a>>
👎Deprecated since 3.2.0: use [AsyncWriterHelper::help_write_string] instead
Available on crate feature
async_string
only.Object Safety§
This trait is not object safe.