pub struct RestrictedProvider { /* private fields */ }Available on (32-bit or 64-bit) and (crate features
test-utils) only.Expand description
An OpenMlsProvider that only claims support for an explicit allowlist
of ciphersuites while remaining fully functional otherwise.
Implementations§
Source§impl RestrictedProvider
impl RestrictedProvider
Sourcepub fn new(allowed: Vec<Ciphersuite>) -> Self
pub fn new(allowed: Vec<Ciphersuite>) -> Self
Creates a provider that claims support for exactly the given ciphersuites.
Trait Implementations§
Source§impl OpenMlsProvider for RestrictedProvider
impl OpenMlsProvider for RestrictedProvider
type CryptoProvider = RestrictedCrypto
type RandProvider = RustCrypto
type StorageProvider = MemoryStorage
fn storage(&self) -> &Self::StorageProvider
Source§fn crypto(&self) -> &Self::CryptoProvider
fn crypto(&self) -> &Self::CryptoProvider
Get the crypto provider.
Source§fn rand(&self) -> &Self::RandProvider
fn rand(&self) -> &Self::RandProvider
Get the randomness provider.
Auto Trait Implementations§
impl !Freeze for RestrictedProvider
impl RefUnwindSafe for RestrictedProvider
impl Send for RestrictedProvider
impl Sync for RestrictedProvider
impl Unpin for RestrictedProvider
impl UnsafeUnpin for RestrictedProvider
impl UnwindSafe for RestrictedProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more