pub enum CipherType {
None = 0,
Ecb = 1,
Ctr = 2,
Cbc = 3,
}Expand description
from https://github.com/Haivision/srt/blob/2ef4ef003c2006df1458de6d47fbe3d2338edf69/haicrypt/hcrypt_msg.h#L121-L124
Variants§
Trait Implementations§
Source§impl Clone for CipherType
impl Clone for CipherType
Source§fn clone(&self) -> CipherType
fn clone(&self) -> CipherType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CipherType
Source§impl Debug for CipherType
impl Debug for CipherType
impl Eq for CipherType
Source§impl PartialEq for CipherType
impl PartialEq for CipherType
Source§fn eq(&self, other: &CipherType) -> bool
fn eq(&self, other: &CipherType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CipherType
Source§impl TryFrom<u8> for CipherType
impl TryFrom<u8> for CipherType
Source§type Error = PacketParseError
type Error = PacketParseError
The type returned in the event of a conversion error.
Source§fn try_from(from: u8) -> Result<CipherType, PacketParseError>
fn try_from(from: u8) -> Result<CipherType, PacketParseError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CipherType
impl RefUnwindSafe for CipherType
impl Send for CipherType
impl Sync for CipherType
impl Unpin for CipherType
impl UnsafeUnpin for CipherType
impl UnwindSafe for CipherType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.