pub struct PrivateKey { /* private fields */ }Expand description
crypto.KeyObject for private (asymmetric) keys
Implementations§
Source§impl PrivateKey
impl PrivateKey
pub fn export( &self, kind: PrivateKeyEncodingType, format: KeyEncodingFormat, ) -> Result<Vec<u8>, CryptoErrno>
pub fn get_asymmetric_key_type(&self) -> &'static str
Auto Trait Implementations§
impl Freeze for PrivateKey
impl RefUnwindSafe for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Unpin for PrivateKey
impl UnwindSafe for PrivateKey
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