Enum shadowsocks_crypto::v1::CipherKind [−][src]
pub enum CipherKind {
NONE,
AES_128_GCM,
AES_256_GCM,
CHACHA20_POLY1305,
}ShadowSocks cipher type
Variants
AEAD_AES_128_GCM
AEAD_AES_256_GCM
AEAD_CHACHA20_POLY1305
Implementations
impl CipherKind[src]
pub fn category(&self) -> CipherCategory[src]
The category of the cipher
pub fn is_none(&self) -> bool[src]
Check if the current cipher is NONE
pub fn is_aead(&self) -> bool[src]
Check if the current cipher is an AEAD cipher
pub fn key_len(&self) -> usize[src]
Key length of the cipher
pub fn tag_len(&self) -> usize[src]
AEAD Cipher’s TAG length
pub fn salt_len(&self) -> usize[src]
AEAD Cipher’s SALT length
Trait Implementations
impl Clone for CipherKind[src]
fn clone(&self) -> CipherKind[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for CipherKind[src]
impl Debug for CipherKind[src]
impl Display for CipherKind[src]
impl Eq for CipherKind[src]
impl FromStr for CipherKind[src]
type Err = ParseCipherKindError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, ParseCipherKindError>[src]
impl PartialEq<CipherKind> for CipherKind[src]
fn eq(&self, other: &CipherKind) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl StructuralEq for CipherKind[src]
impl StructuralPartialEq for CipherKind[src]
Auto Trait Implementations
impl RefUnwindSafe for CipherKind
impl Send for CipherKind
impl Sync for CipherKind
impl Unpin for CipherKind
impl UnwindSafe for CipherKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
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]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,