Skip to main content

write_async

Function write_async 

Source
pub async fn write_async<A>(dest: &mut A, num: u64) -> Result<usize>
where A: 'static + AsyncWrite + Unpin + Send,
Expand description

Encodes a u64 with a variable-byte encoding in a Vec and writes that Vec to the destination dest in a future.