Enum crypt_guard::FileTypes
source · pub enum FileTypes {
Other,
PublicKey,
SecretKey,
Ciphertext,
Message,
File,
}Expand description
Enumerates the types of files recognized by the cryptographic system.
Variants§
Other
Represents an unspecified or other type of file not explicitly listed.
PublicKey
Represents a file containing a public key.
SecretKey
Represents a file containing a secret (private) key.
Ciphertext
Represents a file containing ciphertext.
Message
Represents a file containing a plaintext message.
File
Represents a generic file, without specifying its content type.
Implementations§
source§impl FileTypes
impl FileTypes
sourcepub fn public_key() -> Self
pub fn public_key() -> Self
Represents a file containing a public key.
sourcepub fn Secret_key() -> Self
pub fn Secret_key() -> Self
Represents a file containing a secret (private) key.
sourcepub fn ciphertext() -> Self
pub fn ciphertext() -> Self
Represents a file containing ciphertext.
Trait Implementations§
source§impl PartialEq for FileTypes
impl PartialEq for FileTypes
impl Copy for FileTypes
impl StructuralPartialEq for FileTypes
Auto Trait Implementations§
impl Freeze for FileTypes
impl RefUnwindSafe for FileTypes
impl Send for FileTypes
impl Sync for FileTypes
impl Unpin for FileTypes
impl UnwindSafe for FileTypes
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