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§
Required Methods§
Sourcefn credential_type() -> CredentialType
fn credential_type() -> CredentialType
Credential type represented by this type.
Sourcefn into_credential(self) -> Result<Credential, Self::Error>
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.