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