pub struct X509ExtensionRef(/* private fields */);
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
source§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.
impl Send for X509ExtensionRef
impl Sync for X509ExtensionRef
Auto Trait Implementations§
impl !Freeze for X509ExtensionRef
impl !RefUnwindSafe for X509ExtensionRef
impl Unpin for X509ExtensionRef
impl UnwindSafe for X509ExtensionRef
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