pub(crate) fn from_session_status(status: themis_status_t) -> Error {
        let kind = match status as u32 {
            THEMIS_SSESSION_SEND_OUTPUT_TO_PEER => ErrorKind::SessionSendOutputToPeer,
            THEMIS_SSESSION_KA_NOT_FINISHED => ErrorKind::SessionKeyAgreementNotFinished,
            THEMIS_SSESSION_TRANSPORT_ERROR => ErrorKind::SessionTransportError,
            THEMIS_SSESSION_GET_PUB_FOR_ID_CALLBACK_ERROR => {
                ErrorKind::SessionGetPublicKeyForIdError
            }
            _ => return Error::from_themis_status(status),
        };
        Error { kind }
    }
/// Converts status codes returned by Secure Session.
Converts status codes returned by Secure Session.
Converts status codes returned by Secure Session .
pub(crate) fn from_session_status(status: themis_status_t) -> Error {
        let kind = match status as u32 {
            THEMIS_SSESSION_SEND_OUTPUT_TO_PEER => ErrorKind::SessionSendOutputToPeer,
            THEMIS_SSESSION_KA_NOT_FINISHED => ErrorKind::SessionKeyAgreementNotFinished,
            THEMIS_SSESSION_TRANSPORT_ERROR => ErrorKind::SessionTransportError,
            THEMIS_SSESSION_GET_PUB_FOR_ID_CALLBACK_ERROR => {
                ErrorKind::SessionGetPublicKeyForIdError
            }
            _ => return Error::from_themis_status(status),
        };
        Error { kind }
    }
pub ( crate ) fn from_session_status ( status : themis_status_t ) -> Error { let kind = match status as u32 { THEMIS_SSESSION_SEND_OUTPUT_TO_PEER => ErrorKind :: SessionSendOutputToPeer , THEMIS_SSESSION_KA_NOT_FINISHED => ErrorKind :: SessionKeyAgreementNotFinished , THEMIS_SSESSION_TRANSPORT_ERROR => ErrorKind :: SessionTransportError , THEMIS_SSESSION_GET_PUB_FOR_ID_CALLBACK_ERROR => { ErrorKind :: SessionGetPublicKeyForIdError } _ => return Error :: from_themis_status ( status ) , } ; Error { kind } }
Converts status codes returned by Secure Session.
Converts status codes returned by Secure Session .
status
themis_status_t
status
themis_status_t