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 !Freeze for TimeStampResponse
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