pub struct Es384KeyPairPaths { /* private fields */ }Expand description
File paths for an ES384 key pair managed on disk.
Implementations§
Source§impl Es384KeyPairPaths
impl Es384KeyPairPaths
Sourcepub fn new(
private_key_path: impl Into<PathBuf>,
public_key_path: impl Into<PathBuf>,
) -> Self
pub fn new( private_key_path: impl Into<PathBuf>, public_key_path: impl Into<PathBuf>, ) -> Self
Creates key pair paths from explicit private and public key locations.
Sourcepub fn private_key_path(&self) -> &Path
pub fn private_key_path(&self) -> &Path
Returns the private key file path.
Sourcepub fn public_key_path(&self) -> &Path
pub fn public_key_path(&self) -> &Path
Returns the public key file path.
Sourcepub fn both_exist(&self) -> bool
pub fn both_exist(&self) -> bool
Returns whether both key files currently exist.
Trait Implementations§
Source§impl Clone for Es384KeyPairPaths
impl Clone for Es384KeyPairPaths
Source§fn clone(&self) -> Es384KeyPairPaths
fn clone(&self) -> Es384KeyPairPaths
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 moreSource§impl Debug for Es384KeyPairPaths
impl Debug for Es384KeyPairPaths
Source§impl PartialEq for Es384KeyPairPaths
impl PartialEq for Es384KeyPairPaths
Source§fn eq(&self, other: &Es384KeyPairPaths) -> bool
fn eq(&self, other: &Es384KeyPairPaths) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Es384KeyPairPaths
impl StructuralPartialEq for Es384KeyPairPaths
Auto Trait Implementations§
impl Freeze for Es384KeyPairPaths
impl RefUnwindSafe for Es384KeyPairPaths
impl Send for Es384KeyPairPaths
impl Sync for Es384KeyPairPaths
impl Unpin for Es384KeyPairPaths
impl UnsafeUnpin for Es384KeyPairPaths
impl UnwindSafe for Es384KeyPairPaths
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