pub struct PublicKeyX509Der<'a>(/* private fields */);
Expand description
Serialized bytes
Trait Implementations§
Source§impl AsDer<PublicKeyX509Der<'static>> for PublicEncryptingKey
impl AsDer<PublicKeyX509Der<'static>> for PublicEncryptingKey
Source§fn as_der(&self) -> Result<PublicKeyX509Der<'static>, Unspecified>
fn as_der(&self) -> Result<PublicKeyX509Der<'static>, Unspecified>
Serialize this PublicEncryptingKey
to a X.509 SubjectPublicKeyInfo
structure as DER encoded bytes.
§Errors
Unspecified
for any error that occurs serializing to bytes.
Source§impl AsDer<PublicKeyX509Der<'static>> for PublicKey
impl AsDer<PublicKeyX509Der<'static>> for PublicKey
Source§fn as_der(&self) -> Result<PublicKeyX509Der<'static>, Unspecified>
fn as_der(&self) -> Result<PublicKeyX509Der<'static>, Unspecified>
Provides the public key as a DER-encoded (X.509) SubjectPublicKeyInfo
structure.
§Errors
Returns an error if the public key fails to marshal to X.509.
Source§impl AsDer<PublicKeyX509Der<'static>> for PublicKey
impl AsDer<PublicKeyX509Der<'static>> for PublicKey
Source§fn as_der(&self) -> Result<PublicKeyX509Der<'static>, Unspecified>
fn as_der(&self) -> Result<PublicKeyX509Der<'static>, Unspecified>
Provides the public key as a DER-encoded (X.509) SubjectPublicKeyInfo
structure.
§Errors
Returns an error if the public key fails to marshal to X.509.
Source§impl Debug for PublicKeyX509Der<'_>
impl Debug for PublicKeyX509Der<'_>
Auto Trait Implementations§
impl<'a> Freeze for PublicKeyX509Der<'a>
impl<'a> RefUnwindSafe for PublicKeyX509Der<'a>
impl<'a> Send for PublicKeyX509Der<'a>
impl<'a> Sync for PublicKeyX509Der<'a>
impl<'a> Unpin for PublicKeyX509Der<'a>
impl<'a> UnwindSafe for PublicKeyX509Der<'a>
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