pub async fn encode_many<'a, I, M>(&mut self, msgs: I) -> io::Result<()>
    where
        I: IntoIterator<Item = &'a M> + Send + Sync + 'a,
        I::IntoIter: Send + Sync,
        M: Encodable + Send + Sync + 'a,
    {
        for msg in msgs {
            self.encode(msg).await?;
        }
        Ok(())
    }
/// Encode a slice of [Encodable] messages to the writer.
Encode a slice of [Encodable] messages to the writer.
Encode a slice of [ Encodable ] messages to the writer .
pub async fn encode_many<'a, I, M>(&mut self, msgs: I) -> io::Result<()>
    where
        I: IntoIterator<Item = &'a M> + Send + Sync + 'a,
        I::IntoIter: Send + Sync,
        M: Encodable + Send + Sync + 'a,
    {
        for msg in msgs {
            self.encode(msg).await?;
        }
        Ok(())
    }
pub async fn encode_many < ' a , I , M > ( & mut self , msgs : I ) -> io :: Result < ( ) > where I : IntoIterator < Item = & ' a M > + Send + Sync + ' a , I :: IntoIter : Send + Sync , M : Encodable + Send + Sync + ' a , { for msg in msgs { self . encode ( msg ) . await ? ; } Ok ( ( ) ) }
Encode a slice of [Encodable] messages to the writer.
Encode a slice of [ Encodable ] messages to the writer .
&mut self
msgs
I
&mut self
msgs
I