pub fn send<M: AsRef<[u8]>>(&mut self, message: M) -> Result<()> {
        let (message_ptr, message_len) = into_raw_parts(message.as_ref());

        unsafe {
            let length =
                secure_session_send(self.session_ctx, message_ptr as *const c_void, message_len);
            if length <= 21 {
                return Err(Error::from_session_status(length as themis_status_t));
            }
        }

        Ok(())
    }
/// Sends a message to the remote peer.
///
/// This method will fail if a secure connection has not been established yet.
///
/// This method is a part of transport API and requires [`send_data`] method of
/// `SecureSessionTransport`.
///
/// [`send_data`]: trait.SecureSessionTransport.html#method.send_data
Sends a message to the remote peer.
This method will fail if a secure connection has not been established yet.

This method is a part of transport API and requires [`send_data`] method of
`SecureSessionTransport`.


Sends a message to the remote peer . This method will fail if a secure connection has not been established yet . This method is a part of transport API and requires [ ` send_data ` ] method of ` SecureSessionTransport ` .
pub fn send<M: AsRef<[u8]>>(&mut self, message: M) -> Result<()> {
        let (message_ptr, message_len) = into_raw_parts(message.as_ref());
        unsafe {
            let length =
                secure_session_send(self.session_ctx, message_ptr as *const c_void, message_len);
            if length <= 21 {
                return Err(Error::from_session_status(length as themis_status_t));
            }
        }
        Ok(())
    }
pub fn send < M : AsRef < [ u8 ] > > ( & mut self , message : M ) -> Result < ( ) > { let ( message_ptr , message_len ) = into_raw_parts ( message . as_ref ( ) ) ; unsafe { let length = secure_session_send ( self . session_ctx , message_ptr as * const c_void , message_len ) ; if length <= 21 { return Err ( Error :: from_session_status ( length as themis_status_t ) ) ; } } Ok ( ( ) ) }
Sends a message to the remote peer.
Sends a message to the remote peer .
&mut self
message
M
&mut self
message
M