pub fn negotiate_transport(&mut self) -> Result<()> {
        unsafe {
            let result = secure_session_receive(self.session_ctx, ptr::null_mut(), 0);
            let error = Error::from_session_status(result as themis_status_t);
            if error.kind() != ErrorKind::Success {
                return Err(error);
            }
        }

        Ok(())
    }
/// Continues connection negotiation.
///
/// This method performs one step of connection negotiation. This is the first method to call
/// for the server, the client calls it after the initial [`connect`]. Both peers shall then
/// repeatedly call this method until the connection is established (see [`connect`] for
/// details).
///
/// This method is a part of transport API and requires [`send_data`] and [`receive_data`]
/// methods of `SecureSessionTransport`.
///
/// [`connect`]: struct.SecureSession.html#method.connect
/// [`send_data`]: trait.SecureSessionTransport.html#method.send_data
/// [`receive_data`]: trait.SecureSessionTransport.html#method.receive_data
Continues connection negotiation.
This method performs one step of connection negotiation. This is the first method to call
for the server, the client calls it after the initial [`connect`]. Both peers shall then
repeatedly call this method until the connection is established (see [`connect`] for
details).




Continues connection negotiation . This method performs one step of connection negotiation . This is the first method to call for the server the client calls it after the initial [ ` connect ` ] . Both peers shall then repeatedly call this method until the connection is established ( see [ ` connect ` ] for details ) .
pub fn negotiate_transport(&mut self) -> Result<()> {
        unsafe {
            let result = secure_session_receive(self.session_ctx, ptr::null_mut(), 0);
            let error = Error::from_session_status(result as themis_status_t);
            if error.kind() != ErrorKind::Success {
                return Err(error);
            }
        }
        Ok(())
    }
pub fn negotiate_transport ( & mut self ) -> Result < ( ) > { unsafe { let result = secure_session_receive ( self . session_ctx , ptr :: null_mut ( ) , 0 ) ; let error = Error :: from_session_status ( result as themis_status_t ) ; if error . kind ( ) != ErrorKind :: Success { return Err ( error ) ; } } Ok ( ( ) ) }
Continues connection negotiation.
Continues connection negotiation .
&mut self
&mut self