pub struct Query { /* private fields */ }Expand description
A declarative filter over the registry.
Implementations§
Source§impl Query
impl Query
Sourcepub const fn purpose(self, purpose: Purpose) -> Self
pub const fn purpose(self, purpose: Purpose) -> Self
Require the entry to serve this purpose. Repeating the call requires all of them, which is how “authenticated encryption” is expressed as confidentiality and authentication.
Sourcepub const fn min_classical_bits(self, bits: u16) -> Self
pub const fn min_classical_bits(self, bits: u16) -> Self
Require at least this much strength against a classical adversary.
Sourcepub const fn min_quantum_bits(self, bits: u16) -> Self
pub const fn min_quantum_bits(self, bits: u16) -> Self
Require at least this much strength against a quantum adversary.
Setting this above zero excludes every discrete-log and factoring scheme, which is exactly the filter a post-quantum migration needs.
Sourcepub const fn fips_approved_only(self) -> Self
pub const fn fips_approved_only(self) -> Self
Restrict to algorithms usable in the FIPS approved mode of operation.
Sourcepub const fn available_only(self) -> Self
pub const fn available_only(self) -> Self
Restrict to algorithms actually implemented in this build.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnsafeUnpin for Query
impl UnwindSafe for Query
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