Enum freetsa::TimestampApiError
source · [−]pub enum TimestampApiError {
HttpClient(Error),
Remote(Error),
RequestEncoding(ASN1EncodeErr),
Response(Error),
}
Expand description
Errors that can be generated while interacting with the FreeTSA API
Variants
HttpClient(Error)
HTTP client failed before API request could be made
Remote(Error)
FreeTSA rejected the timestamp request
RequestEncoding(ASN1EncodeErr)
Failed to ASN.1/DER encode the timestamp request
Response(Error)
Failed to process the FreeTSA API response
Trait Implementations
sourceimpl Debug for TimestampApiError
impl Debug for TimestampApiError
sourceimpl Display for TimestampApiError
impl Display for TimestampApiError
sourceimpl Error for TimestampApiError
impl Error for TimestampApiError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<ASN1EncodeErr> for TimestampApiError
impl From<ASN1EncodeErr> for TimestampApiError
sourcefn from(source: ASN1EncodeErr) -> Self
fn from(source: ASN1EncodeErr) -> Self
Converts to this type from the input type.
sourceimpl From<TimestampApiError> for TimestampFileError
impl From<TimestampApiError> for TimestampFileError
sourcefn from(source: TimestampApiError) -> Self
fn from(source: TimestampApiError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for TimestampApiError
impl Send for TimestampApiError
impl Sync for TimestampApiError
impl Unpin for TimestampApiError
impl !UnwindSafe for TimestampApiError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more