#[non_exhaustive]#[repr(u32)]pub enum RecommendedCurve {
Show 15 variants
P_192 = 1,
K_163 = 2,
B_163 = 3,
P_224 = 4,
K_233 = 5,
B_233 = 6,
P_256 = 7,
K_283 = 8,
B_283 = 9,
P_384 = 10,
K_409 = 11,
B_409 = 12,
P_521 = 13,
K_571 = 14,
B_571 = 15,
}Expand description
See KMIP 1.0 section 9.1.3.2.5 Recommended Curve Enumeration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
P_192 = 1
K_163 = 2
B_163 = 3
P_224 = 4
K_233 = 5
B_233 = 6
P_256 = 7
K_283 = 8
B_283 = 9
P_384 = 10
K_409 = 11
B_409 = 12
P_521 = 13
K_571 = 14
B_571 = 15
Implementations§
Source§impl RecommendedCurve
impl RecommendedCurve
pub const TAG: Tag
pub fn fast_scan(scanner: &mut FastScanner<'_>) -> Result<Self, FastScanError>
pub fn fast_scan_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Self, FastScanError>
pub fn fast_scan_opt( scanner: &mut FastScanner<'_>, ) -> Result<Option<Self>, FastScanError>
pub fn fast_scan_opt_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Option<Self>, FastScanError>
pub fn format(&self, formatter: &mut Formatter<'_>) -> FormatResult
pub fn format_with( &self, formatter: &mut Formatter<'_>, tag: Tag, ) -> FormatResult
Trait Implementations§
Source§impl Clone for RecommendedCurve
impl Clone for RecommendedCurve
impl Copy for RecommendedCurve
Source§impl Debug for RecommendedCurve
impl Debug for RecommendedCurve
Source§impl Display for RecommendedCurve
impl Display for RecommendedCurve
impl Eq for RecommendedCurve
Source§impl Ordinalize for RecommendedCurve
impl Ordinalize for RecommendedCurve
Source§const VARIANT_COUNT: usize = 15usize
const VARIANT_COUNT: usize = 15usize
The count of variants.
Source§type VariantType = u32
type VariantType = u32
The type of the values of the variants.
Source§unsafe fn from_ordinal_unsafe(number: u32) -> Self
unsafe fn from_ordinal_unsafe(number: u32) -> Self
Obtain a variant based on an integer number. Read more
Source§fn from_ordinal(number: u32) -> Option<Self>
fn from_ordinal(number: u32) -> Option<Self>
Obtain a variant based on an integer number.
Source§impl PartialEq for RecommendedCurve
impl PartialEq for RecommendedCurve
impl StructuralPartialEq for RecommendedCurve
Auto Trait Implementations§
impl Forget for RecommendedCurve
impl Freeze for RecommendedCurve
impl Move for RecommendedCurve
impl RefUnwindSafe for RecommendedCurve
impl Send for RecommendedCurve
impl Sync for RecommendedCurve
impl Unpin for RecommendedCurve
impl UnsafeUnpin for RecommendedCurve
impl UnwindSafe for RecommendedCurve
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