Enum gpgme::HashAlgorithm [−][src]
pub enum HashAlgorithm { None, Md2, Md4, Md5, Sha1, Sha224, Sha256, Sha384, Sha512, RipeMd160, Tiger, Haval, Crc32, Crc32Rfc1510, CrC24Rfc2440, Other(gpgme_hash_algo_t), }
Variants
None
Md2
Md4
Md5
Sha1
Sha224
Sha256
Sha384
Sha512
RipeMd160
Tiger
Haval
Crc32
Crc32Rfc1510
CrC24Rfc2440
Other(gpgme_hash_algo_t)
Methods
impl HashAlgorithm
[src]
impl HashAlgorithm
pub unsafe fn from_raw(raw: gpgme_hash_algo_t) -> HashAlgorithm
[src]
pub unsafe fn from_raw(raw: gpgme_hash_algo_t) -> HashAlgorithm
pub fn raw(&self) -> gpgme_hash_algo_t
[src]
pub fn raw(&self) -> gpgme_hash_algo_t
impl HashAlgorithm
[src]
impl HashAlgorithm
pub fn name(&self) -> Result<&'static str, Option<Utf8Error>>
[src]
pub fn name(&self) -> Result<&'static str, Option<Utf8Error>>
pub fn name_raw(&self) -> Option<&'static CStr>
[src]
pub fn name_raw(&self) -> Option<&'static CStr>
Trait Implementations
impl Copy for HashAlgorithm
[src]
impl Copy for HashAlgorithm
impl Clone for HashAlgorithm
[src]
impl Clone for HashAlgorithm
fn clone(&self) -> HashAlgorithm
[src]
fn clone(&self) -> HashAlgorithm
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Eq for HashAlgorithm
[src]
impl Eq for HashAlgorithm
impl PartialEq for HashAlgorithm
[src]
impl PartialEq for HashAlgorithm
fn eq(&self, other: &HashAlgorithm) -> bool
[src]
fn eq(&self, other: &HashAlgorithm) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &HashAlgorithm) -> bool
[src]
fn ne(&self, other: &HashAlgorithm) -> bool
This method tests for !=
.
impl Hash for HashAlgorithm
[src]
impl Hash for HashAlgorithm
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for HashAlgorithm
[src]
impl Debug for HashAlgorithm
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for HashAlgorithm
[src]
impl Display for HashAlgorithm
Auto Trait Implementations
impl Send for HashAlgorithm
impl Send for HashAlgorithm
impl Sync for HashAlgorithm
impl Sync for HashAlgorithm