pub async fn send<T: Serialize + DeserializeOwned>(
        &mut self,
        value: T,
    ) -> Result<(), SendError> {
        let msg = self.encrypt_msg(value)?;
        let res = self.i.send(&msg).await?;
        if res != msg.len() {
            return Err(SendError::TooLarge);
        }
        Ok(())
    }
/// Asynchronously send a message over the channel (with the given encryption context)
Asynchronously send a message over the channel (with the given encryption context)
Asynchronously send a message over the channel ( with the given encryption context )
pub async fn send<T: Serialize + DeserializeOwned>(
        &mut self,
        value: T,
    ) -> Result<(), SendError> {
        let msg = self.encrypt_msg(value)?;
        let res = self.i.send(&msg).await?;
        if res != msg.len() {
            return Err(SendError::TooLarge);
        }
        Ok(())
    }
pub async fn send < T : Serialize + DeserializeOwned > ( & mut self , value : T , ) -> Result < ( ) , SendError > { let msg = self . encrypt_msg ( value ) ? ; let res = self . i . send ( & msg ) . await ? ; if res != msg . len ( ) { return Err ( SendError :: TooLarge ) ; } Ok ( ( ) ) }
Asynchronously send a message over the channel (with the given encryption context)
Asynchronously send a message over the channel ( with the given encryption context )
&mut self
value
T
&mut self
value
T