Struct RsaPrivateKey
pub struct RsaPrivateKey { /* private fields */ }Expand description
RSA private key.
Implementations§
§impl RsaPrivateKey
impl RsaPrivateKey
pub fn try_from_slice(bytes: impl AsRef<[u8]>) -> Result<Self>
pub fn try_from_slice(bytes: impl AsRef<[u8]>) -> Result<Self>
Parses a key from a byte slice.
Returns an error if the slice does not contain a valid RSA private key.
Trait Implementations§
§impl AsRef<[u8]> for RsaPrivateKey
impl AsRef<[u8]> for RsaPrivateKey
§impl Clone for RsaPrivateKey
impl Clone for RsaPrivateKey
§fn clone(&self) -> RsaPrivateKey
fn clone(&self) -> RsaPrivateKey
Returns a duplicate 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 more§impl Debug for RsaPrivateKey
impl Debug for RsaPrivateKey
§impl From<RsaPrivateKey> for PrivateKey
impl From<RsaPrivateKey> for PrivateKey
§fn from(private_key: RsaPrivateKey) -> PrivateKey
fn from(private_key: RsaPrivateKey) -> PrivateKey
Converts to this type from the input type.
§impl Hash for RsaPrivateKey
impl Hash for RsaPrivateKey
§impl PartialEq for RsaPrivateKey
impl PartialEq for RsaPrivateKey
impl Eq for RsaPrivateKey
impl StructuralPartialEq for RsaPrivateKey
Auto Trait Implementations§
impl Freeze for RsaPrivateKey
impl RefUnwindSafe for RsaPrivateKey
impl Send for RsaPrivateKey
impl Sync for RsaPrivateKey
impl Unpin for RsaPrivateKey
impl UnwindSafe for RsaPrivateKey
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