Struct openssl::ocsp::OcspResponseRef
source · [−]pub struct OcspResponseRef(_);
Implementations
sourceimpl OcspResponseRef
impl OcspResponseRef
sourcepub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
Serializes the response to its standard DER encoding.
This corresponds to i2d_OCSP_RESPONSE
.
sourcepub fn status(&self) -> OcspResponseStatus
pub fn status(&self) -> OcspResponseStatus
Returns the status of the response.
sourcepub fn basic(&self) -> Result<OcspBasicResponse, ErrorStack>
pub fn basic(&self) -> Result<OcspBasicResponse, ErrorStack>
Returns the basic response.
This will only succeed if status()
returns RESPONSE_STATUS_SUCCESSFUL
.
Trait Implementations
sourceimpl AsRef<OcspResponseRef> for OcspResponse
impl AsRef<OcspResponseRef> for OcspResponse
sourcefn as_ref(&self) -> &OcspResponseRef
fn as_ref(&self) -> &OcspResponseRef
Performs the conversion.
sourceimpl Borrow<OcspResponseRef> for OcspResponse
impl Borrow<OcspResponseRef> for OcspResponse
sourcefn borrow(&self) -> &OcspResponseRef
fn borrow(&self) -> &OcspResponseRef
Immutably borrows from an owned value. Read more
sourceimpl ForeignTypeRef for OcspResponseRef
impl ForeignTypeRef for OcspResponseRef
impl Send for OcspResponseRef
impl Sync for OcspResponseRef
Auto Trait Implementations
impl !RefUnwindSafe for OcspResponseRef
impl Unpin for OcspResponseRef
impl UnwindSafe for OcspResponseRef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more