Enum digest_headers::ShaSize [] [src]

pub enum ShaSize {
    TwoFiftySix,
    ThreeEightyFour,
    FiveTwelve,
}

Defines variants for the size of SHA hash.

Since this isn't being used for encryption or identification, it doesn't need to be very strong. That said, it's ultimately up to the user of this library, so we provide options for 256, 384, and 512.

Variants

Trait Implementations

impl Copy for ShaSize
[src]

impl Clone for ShaSize
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ShaSize
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for ShaSize
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for ShaSize
[src]

impl Display for ShaSize
[src]

[src]

Formats the value using the given formatter. Read more

impl FromStr for ShaSize
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

impl Send for ShaSize

impl Sync for ShaSize