pub fn as_application_message(&self) -> Result<&[u8], MlsPlaintextError> {
        match &self.content {
            MlsPlaintextContentType::Application(message) => Ok(message.as_slice()),
            _ => Err(MlsPlaintextError::NotAnApplicationMessage),
        }
    }
/// Tries to extract an application messages from an `MlsPlaintext`. Returns
/// `MlsPlaintextError::NotAnApplicationMessage` if the `MlsPlaintext`
/// contained something other than an application message.
Tries to extract an application messages from an `MlsPlaintext`. Returns
`MlsPlaintextError::NotAnApplicationMessage` if the `MlsPlaintext`
contained something other than an application message.
Tries to extract an application messages from an ` MlsPlaintext ` . Returns ` MlsPlaintextError :: NotAnApplicationMessage ` if the ` MlsPlaintext ` contained something other than an application message .
pub fn as_application_message(&self) -> Result<&[u8], MlsPlaintextError> {
        match &self.content {
            MlsPlaintextContentType::Application(message) => Ok(message.as_slice()),
            _ => Err(MlsPlaintextError::NotAnApplicationMessage),
        }
    }
pub fn as_application_message ( & self ) -> Result < & [ u8 ] , MlsPlaintextError > { match & self . content { MlsPlaintextContentType :: Application ( message ) => Ok ( message . as_slice ( ) ) , _ => Err ( MlsPlaintextError :: NotAnApplicationMessage ) , } }
Tries to extract an application messages from an `MlsPlaintext`.
Tries to extract an application messages from an ` MlsPlaintext ` .
&self
&self