pub struct TimeStampResponse(/* private fields */);
Expand description
High-level interface to TimeStampResp.
This type provides a high-level interface to the low-level ASN.1 response type from a Time-Stamp Protocol request.
Implementations§
source§impl TimeStampResponse
impl TimeStampResponse
sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Whether the time stamp request was successful.
sourcepub fn token_content_size(&self) -> Option<usize>
pub fn token_content_size(&self) -> Option<usize>
Obtain the size of the time-stamp token data.
sourcepub fn signed_data(&self) -> Result<Option<SignedData>, DecodeError<Infallible>>
pub fn signed_data(&self) -> Result<Option<SignedData>, DecodeError<Infallible>>
Decode the SignedData
value in the response.
pub fn tst_info(&self) -> Result<Option<TstInfo>, DecodeError<Infallible>>
Methods from Deref<Target = TimeStampResp>§
pub fn encode_ref(&self) -> impl Values + '_
Trait Implementations§
source§impl Deref for TimeStampResponse
impl Deref for TimeStampResponse
source§impl From<TimeStampResp> for TimeStampResponse
impl From<TimeStampResp> for TimeStampResponse
source§fn from(resp: TimeStampResp) -> Self
fn from(resp: TimeStampResp) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for TimeStampResponse
impl Send for TimeStampResponse
impl Sync for TimeStampResponse
impl Unpin for TimeStampResponse
impl UnwindSafe for TimeStampResponse
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