[−][src]Struct libzmq::auth::CurvePublicKey
A public CURVE
cryptographic key in the printable Z85
representation.
Example
use libzmq::auth::*; let cert = CurveCert::new_unique(); // Generate a public key from a curve certificate. let public = cert.public().to_owned(); // Derive a public key from a secret key. let derived: CurvePublicKey = cert.secret().into(); assert_eq!(public, derived);
Methods
impl CurvePublicKey
[src]
pub fn new<S>(text: S) -> Result<Self, CurveError> where
S: Into<String>,
[src]
S: Into<String>,
Create a new CurvePublicKey
from a valid Z85
string.
pub fn as_str(&self) -> &str
[src]
Returns the key in Z85
encoded string.
Trait Implementations
impl Eq for CurvePublicKey
[src]
impl PartialEq<CurvePublicKey> for CurvePublicKey
[src]
fn eq(&self, other: &CurvePublicKey) -> bool
[src]
fn ne(&self, other: &CurvePublicKey) -> bool
[src]
impl Clone for CurvePublicKey
[src]
fn clone(&self) -> CurvePublicKey
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<CurveSecretKey> for CurvePublicKey
[src]
fn from(secret: CurveSecretKey) -> Self
[src]
impl<'a> From<&'a CurveSecretKey> for CurvePublicKey
[src]
fn from(secret: &'a CurveSecretKey) -> Self
[src]
impl<'a> From<&'a CurvePublicKey> for CurvePublicKey
[src]
fn from(key: &'a CurvePublicKey) -> Self
[src]
impl IntoIterator for CurvePublicKey
[src]
type Item = Self
The type of the elements being iterated over.
type IntoIter = IntoIter<Self>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a> IntoIterator for &'a CurvePublicKey
[src]
type Item = Self
The type of the elements being iterated over.
type IntoIter = IntoIter<Self>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl Debug for CurvePublicKey
[src]
impl Display for CurvePublicKey
[src]
impl Hash for CurvePublicKey
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl TryFrom<String> for CurvePublicKey
[src]
type Error = CurveError
The type returned in the event of a conversion error.
fn try_from(text: String) -> Result<Self, CurveError>
[src]
impl<'a> TryFrom<&'a str> for CurvePublicKey
[src]
type Error = CurveError
The type returned in the event of a conversion error.
fn try_from(text: &'a str) -> Result<Self, CurveError>
[src]
impl<'a> TryFrom<&'a String> for CurvePublicKey
[src]
type Error = CurveError
The type returned in the event of a conversion error.
fn try_from(text: &'a String) -> Result<Self, CurveError>
[src]
impl Serialize for CurvePublicKey
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for CurvePublicKey
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for CurvePublicKey
impl Sync for CurvePublicKey
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From<T> for T
[src]
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,