pub(crate) struct ConstPointer<'a, T> {
ptr: *const T,
_lifetime: PhantomData<&'a T>,
}
Fields§
§ptr: *const T
§_lifetime: PhantomData<&'a T>
Implementations§
Source§impl ConstPointer<'_, BIGNUM>
impl ConstPointer<'_, BIGNUM>
pub(crate) fn to_be_bytes(&self) -> Vec<u8> ⓘ
Source§impl ConstPointer<'_, EVP_PKEY>
impl ConstPointer<'_, EVP_PKEY>
pub(crate) fn validate_as_ed25519(&self) -> Result<(), KeyRejected>
pub(crate) fn id(&self) -> i32
pub(crate) fn key_size_bytes(&self) -> usize
pub(crate) fn key_size_bits(&self) -> usize
pub(crate) fn signature_size_bytes(&self) -> usize
pub(crate) fn get_ec_key(&self) -> Result<ConstPointer<'_, EC_KEY>, KeyRejected>
pub(crate) fn get_rsa(&self) -> Result<ConstPointer<'_, RSA>, KeyRejected>
pub(crate) fn marshal_rfc5280_public_key(&self) -> Result<Vec<u8>, Unspecified>
pub(crate) fn marshal_rfc5208_private_key( &self, version: Version, ) -> Result<Vec<u8>, Unspecified>
pub(crate) fn marshal_raw_private_key(&self) -> Result<Vec<u8>, Unspecified>
pub(crate) fn marshal_raw_private_to_buffer( &self, buffer: &mut [u8], ) -> Result<usize, Unspecified>
pub(crate) fn marshal_raw_public_key(&self) -> Result<Vec<u8>, Unspecified>
pub(crate) fn marshal_raw_public_to_buffer( &self, buffer: &mut [u8], ) -> Result<usize, Unspecified>
Source§impl<T> ConstPointer<'static, T>
impl<T> ConstPointer<'static, T>
pub unsafe fn new_static(ptr: *const T) -> Result<Self, ()>
Source§impl<T> ConstPointer<'_, T>
impl<T> ConstPointer<'_, T>
pub fn project_const_lifetime<'a, C>( &'a self, f: unsafe fn(&'a Self) -> *const C, ) -> Result<ConstPointer<'a, C>, ()>
Trait Implementations§
Source§impl<'a, T: Debug> Debug for ConstPointer<'a, T>
impl<'a, T: Debug> Debug for ConstPointer<'a, T>
Source§impl<T> Deref for ConstPointer<'_, T>
impl<T> Deref for ConstPointer<'_, T>
Source§impl<'a, P: Pointer> From<&'a ManagedPointer<P>> for ConstPointer<'a, P::T>
impl<'a, P: Pointer> From<&'a ManagedPointer<P>> for ConstPointer<'a, P::T>
Source§fn from(ptr: &'a ManagedPointer<P>) -> ConstPointer<'a, P::T>
fn from(ptr: &'a ManagedPointer<P>) -> ConstPointer<'a, P::T>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, T> Freeze for ConstPointer<'a, T>
impl<'a, T> RefUnwindSafe for ConstPointer<'a, T>where
T: RefUnwindSafe,
impl<'a, T> !Send for ConstPointer<'a, T>
impl<'a, T> !Sync for ConstPointer<'a, T>
impl<'a, T> Unpin for ConstPointer<'a, T>
impl<'a, T> UnwindSafe for ConstPointer<'a, T>where
T: RefUnwindSafe,
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