async fn write_object_id_list(
    object_ids: &[ObjectId],
    socket: &mut TcpStream,
) -> Result<(), std::io::Error> {
    socket.write_u16_le(object_ids.len() as u16).await?;
    for id in object_ids.iter() {
        socket.write_all(id).await?;
    }
    Ok(())
}
/// Writes a list of object IDs into the socket. Number of object IDs is written into the
/// socket first (as u16), followed by the actual object IDs.
Writes a list of object IDs into the socket. Number of object IDs is written into the
socket first (as u16), followed by the actual object IDs.
Writes a list of object IDs into the socket . Number of object IDs is written into the socket first ( as u16 ) followed by the actual object IDs .
async fn write_object_id_list(
    object_ids: &[ObjectId],
    socket: &mut TcpStream,
) -> Result<(), std::io::Error> {
    socket.write_u16_le(object_ids.len() as u16).await?;
    for id in object_ids.iter() {
        socket.write_all(id).await?;
    }
    Ok(())
}
async fn write_object_id_list ( object_ids : & [ ObjectId ] , socket : & mut TcpStream , ) -> Result < ( ) , std :: io :: Error > { socket . write_u16_le ( object_ids . len ( ) as u16 ) . await ? ; for id in object_ids . iter ( ) { socket . write_all ( id ) . await ? ; } Ok ( ( ) ) }
Writes a list of object IDs into the socket.
Writes a list of object IDs into the socket .
object_ids
&[ObjectId]
socket
&mut TcpStream
object_ids
&[ObjectId]
socket
&mut TcpStream