pub struct ArtificeHostData { /* private fields */ }
Expand description
provides a means of saving private keys to files, because the process of generating the keys takes a really long time, but creating them from existing values does not
Implementations§
Source§impl ArtificeHostData
impl ArtificeHostData
pub fn new(private_key: &RSAPrivateKey, global_peer_hash: &str) -> Self
Sourcepub fn privkeycomp(&self) -> &PrivKeyComp
pub fn privkeycomp(&self) -> &PrivKeyComp
returns the n, e, d, and primes of an RSA key
pub fn global_peer_hash(&self) -> &str
Trait Implementations§
Source§impl Clone for ArtificeHostData
impl Clone for ArtificeHostData
Source§fn clone(&self) -> ArtificeHostData
fn clone(&self) -> ArtificeHostData
Returns a copy of the value. Read more
1.0.0 · 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 ArtificeHostData
impl Debug for ArtificeHostData
Source§impl Default for ArtificeHostData
impl Default for ArtificeHostData
Source§impl<'de> Deserialize<'de> for ArtificeHostData
impl<'de> Deserialize<'de> for ArtificeHostData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for ArtificeHostData
impl Ord for ArtificeHostData
Source§fn cmp(&self, other: &ArtificeHostData) -> Ordering
fn cmp(&self, other: &ArtificeHostData) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ArtificeHostData
impl PartialEq for ArtificeHostData
Source§impl PartialOrd for ArtificeHostData
impl PartialOrd for ArtificeHostData
Source§impl Serialize for ArtificeHostData
impl Serialize for ArtificeHostData
impl Eq for ArtificeHostData
impl StructuralPartialEq for ArtificeHostData
Auto Trait Implementations§
impl Freeze for ArtificeHostData
impl RefUnwindSafe for ArtificeHostData
impl Send for ArtificeHostData
impl Sync for ArtificeHostData
impl Unpin for ArtificeHostData
impl UnwindSafe for ArtificeHostData
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