Struct openssl::ocsp::OcspRequestRef
source · pub struct OcspRequestRef(/* private fields */);
Implementations§
source§impl OcspRequestRef
impl OcspRequestRef
sourcepub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
Serializes the request to its standard DER encoding.
This corresponds to i2d_OCSP_REQUEST
.
sourcepub fn add_id(
&mut self,
id: OcspCertId,
) -> Result<&mut OcspOneReqRef, ErrorStack>
pub fn add_id( &mut self, id: OcspCertId, ) -> Result<&mut OcspOneReqRef, ErrorStack>
This corresponds to OCSP_request_add0_id
.
Trait Implementations§
source§impl AsRef<OcspRequestRef> for OcspRequest
impl AsRef<OcspRequestRef> for OcspRequest
source§fn as_ref(&self) -> &OcspRequestRef
fn as_ref(&self) -> &OcspRequestRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<OcspRequestRef> for OcspRequest
impl Borrow<OcspRequestRef> for OcspRequest
source§fn borrow(&self) -> &OcspRequestRef
fn borrow(&self) -> &OcspRequestRef
Immutably borrows from an owned value. Read more
source§impl ForeignTypeRef for OcspRequestRef
impl ForeignTypeRef for OcspRequestRef
§type CType = OCSP_REQUEST
type CType = OCSP_REQUEST
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 OcspRequestRef
impl Sync for OcspRequestRef
Auto Trait Implementations§
impl !Freeze for OcspRequestRef
impl !RefUnwindSafe for OcspRequestRef
impl Unpin for OcspRequestRef
impl UnwindSafe for OcspRequestRef
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