pub async fn send<D: Serialize>(&mut self, data: D) -> Result<(), TransportError> {
        // Serialize data into a byte stream
        // NOTE: Cannot used packed implementation for now due to issues with deserialization
        let data = serialize_to_vec(&data)?;

        // Use underlying codec to send data (may encrypt, sign, etc.)
        self.0.send(&data).await.map_err(TransportError::from)
    }
/// Sends some data across the wire, waiting for it to completely send
Sends some data across the wire, waiting for it to completely send
Sends some data across the wire waiting for it to completely send
pub async fn send<D: Serialize>(&mut self, data: D) -> Result<(), TransportError> {
        // Serialize data into a byte stream
        // NOTE: Cannot used packed implementation for now due to issues with deserialization
        let data = serialize_to_vec(&data)?;
        // Use underlying codec to send data (may encrypt, sign, etc.)
        self.0.send(&data).await.map_err(TransportError::from)
    }
pub async fn send < D : Serialize > ( & mut self , data : D ) -> Result < ( ) , TransportError > { // Serialize data into a byte stream // NOTE: Cannot used packed implementation for now due to issues with deserialization let data = serialize_to_vec ( & data ) ? ; // Use underlying codec to send data (may encrypt, sign, etc.) self . 0 . send ( & data ) . await . map_err ( TransportError :: from ) }
Sends some data across the wire, waiting for it to completely send
Sends some data across the wire waiting for it to completely send
&mut self
data
D