pub struct Response<T> { /* private fields */ }Expand description
A HTTP response from an ACME service
Implementations§
Source§impl<T> Response<T>
impl<T> Response<T>
Sourcepub fn status(&self) -> StatusCode
pub fn status(&self) -> StatusCode
Response http::StatusCode
Sourcepub fn retry_after(&self) -> Option<Duration>
pub fn retry_after(&self) -> Option<Duration>
The seconds to wait for a retry, from now.
Sourcepub fn nonce(&self) -> Option<Nonce>
pub fn nonce(&self) -> Option<Nonce>
Get the Nonce from this response.
Normally, this is unnecessay, as crate::Client will automatically handle
and track Nonce values.
Sourcepub fn content_type(&self) -> Option<Mime>
pub fn content_type(&self) -> Option<Mime>
The mime::Mime from the Content-Type header.
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Extract just the response payload.
Trait Implementations§
Source§impl<T> AcmeFormat for Response<T>where
T: Encode,
impl<T> AcmeFormat for Response<T>where
T: Encode,
Source§fn fmt<W: Write>(&self, f: &mut IndentWriter<'_, W>) -> Result
fn fmt<W: Write>(&self, f: &mut IndentWriter<'_, W>) -> Result
Write this format at the current indentation.
Source§fn fmt_indented<W: Write>(&self, f: &mut IndentWriter<'_, W>) -> Result
fn fmt_indented<W: Write>(&self, f: &mut IndentWriter<'_, W>) -> Result
Write this format at an indented level one greater than the current level. Read more
Source§fn fmt_indented_skip_first<W: Write>(
&self,
f: &mut IndentWriter<'_, W>,
) -> Result
fn fmt_indented_skip_first<W: Write>( &self, f: &mut IndentWriter<'_, W>, ) -> Result
Write this format at an indented level one greater than the current level,
but don’t indent the first line.
Source§fn formatted(&self) -> AcmeFormatted<'_, Self>
fn formatted(&self) -> AcmeFormatted<'_, Self>
Return a formatting proxy which will use the ACME format when used with
std::fmt::Display.Auto Trait Implementations§
impl<T> Freeze for Response<T>where
T: Freeze,
impl<T> RefUnwindSafe for Response<T>where
T: RefUnwindSafe,
impl<T> Send for Response<T>where
T: Send,
impl<T> Sync for Response<T>where
T: Sync,
impl<T> Unpin for Response<T>where
T: Unpin,
impl<T> UnwindSafe for Response<T>where
T: UnwindSafe,
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