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

# Struct openssl::srtp::SrtpProfileId [−] [src]

    pub struct SrtpProfileId(_);

An identifier of an SRTP protection profile.

## Implementations

### `impl SrtpProfileId` [src]

#### `pub const SRTP_AES128_CM_SHA1_80: SrtpProfileId` [src]

#### `pub const SRTP_AES128_CM_SHA1_32: SrtpProfileId` [src]

#### `pub const SRTP_AES128_F8_SHA1_80: SrtpProfileId` [src]

#### `pub const SRTP_AES128_F8_SHA1_32: SrtpProfileId` [src]

#### `pub const SRTP_NULL_SHA1_80: SrtpProfileId` [src]

#### `pub const SRTP_NULL_SHA1_32: SrtpProfileId` [src]

#### `pub const SRTP_AEAD_AES_128_GCM: SrtpProfileId` [src]

#### `pub const SRTP_AEAD_AES_256_GCM: SrtpProfileId` [src]

#### `pub fn from_raw(value: c_ulong) -> SrtpProfileId` [src]

Creates a `SrtpProfileId` from an integer representation.

#### `pub fn as_raw(&self) -> c_ulong` [src]

Returns the integer representation of `SrtpProfileId`.

## Trait Implementations

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

#### `fn clone(&self) -> SrtpProfileId` [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 SrtpProfileId` [src]

### `impl Debug for SrtpProfileId` [src]

#### `fn fmt(&self, f: &mut Formatter<'_>) -> Result` [src]

Formats the value using the given formatter. Read more

### `impl Eq for SrtpProfileId` [src]

### `impl PartialEq<SrtpProfileId> for SrtpProfileId` [src]

#### `fn eq(&self, other: &SrtpProfileId) -> bool` [src]

This method tests for `self` and `other` values to be equal, and is used by `==`. Read more

#### `fn ne(&self, other: &SrtpProfileId) -> bool` [src]

This method tests for `!=`.

### `impl StructuralEq for SrtpProfileId` [src]

### `impl StructuralPartialEq for SrtpProfileId` [src]

## Auto Trait Implementations

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

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

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

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

### `impl UnwindSafe for SrtpProfileId` [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.