# openssl::ec::Asn1Flag - Rust
API documentation for the Rust `Asn1Flag` struct in crate `openssl`.
Keywords: rust, rustlang, rust-lang, Asn1Flag

# Struct openssl::ec::Asn1Flag [−] [src]

    pub struct Asn1Flag(_);

Named Curve or Explicit

This type acts as a boolean as to whether the `EcGroup` is named or explicit.

## Implementations

### `impl Asn1Flag` [src]

#### `pub const EXPLICIT_CURVE: Asn1Flag` [src]

Curve defined using polynomial parameters

Most applications use a named EC_GROUP curve, however, support is included to explicitly define the curve used to calculate keys This information would need to be known by both endpoint to make communication effective.

OPENSSL_EC_EXPLICIT_CURVE, but that was only added in 1.1. Man page documents that 0 can be used in older versions.

OpenSSL documentation at `EC_GROUP`

#### `pub const NAMED_CURVE: Asn1Flag` [src]

Standard Curves

Curves that make up the typical encryption use cases. The collection of curves are well known but extensible.

OpenSSL documentation at `EC_GROUP`

## Trait Implementations

### `impl Clone for Asn1Flag` [src]

#### `fn clone(&self) -> Asn1Flag` [src]

Returns a copy of the value. Read more

#### `pub fn clone_from(&mut self, source: &Self)`1.0.0 [src]

Performs copy-assignment from `source`. Read more

### `impl Copy for Asn1Flag` [src]

## Auto Trait Implementations

### `impl RefUnwindSafe for Asn1Flag` [src]

### `impl Send for Asn1Flag` [src]

### `impl Sync for Asn1Flag` [src]

### `impl Unpin for Asn1Flag` [src]

### `impl UnwindSafe for Asn1Flag` [src]

## Blanket Implementations

### `impl<T> Any for T where
T: 'static + ?Sized,` [src]

#### `pub fn type_id(&self) -> TypeId` [src]

Gets the `TypeId` of `self`. Read more

### `impl<T> Borrow<T> for T where
T: ?Sized,` [src]

#### `pub fn borrow(&self) -> &T` [src]

Immutably borrows from an owned value. Read more

### `impl<T> BorrowMut<T> for T where
T: ?Sized,` [src]

#### `pub fn borrow_mut(&mut self) -> &mut T` [src]

Mutably borrows from an owned value. Read more

### `impl<T> From<T> for T` [src]

#### `pub fn from(t: T) -> T` [src]

Performs the conversion.

### `impl<T, U> Into<U> for T where
U: From<T>,` [src]

#### `pub fn into(self) -> U` [src]

Performs the conversion.

### `impl<T> ToOwned for T where
T: Clone,` [src]

#### `type Owned = T`

The resulting type after obtaining ownership.

#### `pub fn to_owned(&self) -> T` [src]

Creates owned data from borrowed data, usually by cloning. Read more

#### `pub fn clone_into(&self, target: &mut T)` [src]

🔬 This is a nightly-only experimental API. (`toowned_clone_into`)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

### `impl<T, U> TryFrom<U> for T where
U: Into<T>,` [src]

#### `type Error = Infallible`

The type returned in the event of a conversion error.

#### `pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>` [src]

Performs the conversion.

### `impl<T, U> TryInto<U> for T where
U: TryFrom<T>,` [src]

#### `type Error = <U as TryFrom<T>>::Error`

The type returned in the event of a conversion error.

#### `pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>` [src]

Performs the conversion.