Struct openssl::x509::X509ExtensionRef
source · pub struct X509ExtensionRef(_);
Expand description
Reference to X509Extension
.
Implementations§
source§impl X509ExtensionRef
impl X509ExtensionRef
sourcepub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
Serializes the Extension to its standard DER encoding.
This corresponds to i2d_X509_EXTENSION
.
Trait Implementations§
source§impl AsRef<X509ExtensionRef> for X509Extension
impl AsRef<X509ExtensionRef> for X509Extension
source§fn as_ref(&self) -> &X509ExtensionRef
fn as_ref(&self) -> &X509ExtensionRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<X509ExtensionRef> for X509Extension
impl Borrow<X509ExtensionRef> for X509Extension
source§fn borrow(&self) -> &X509ExtensionRef
fn borrow(&self) -> &X509ExtensionRef
Immutably borrows from an owned value. Read more
source§impl ForeignTypeRef for X509ExtensionRef
impl ForeignTypeRef for X509ExtensionRef
§type CType = X509_EXTENSION
type CType = X509_EXTENSION
The raw C type.
source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type.
source§unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
Constructs a mutable reference of this type from its raw type.