Trait MlsCredential

Source
pub trait MlsCredential: Sized {
    type Error;

    // Required methods
    fn credential_type() -> CredentialType;
    fn into_credential(self) -> Result<Credential, Self::Error>;
}
Expand description

Trait that provides a conversion between an underlying credential type and the Credential enum.

Required Associated Types§

Source

type Error

Conversion error type.

Required Methods§

Source

fn credential_type() -> CredentialType

Credential type represented by this type.

Source

fn into_credential(self) -> Result<Credential, Self::Error>

Function to convert this type into a Credential enum.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§