Trait dot4ch::Procedures
source · [−]pub trait Procedures {
type Output;
fn refresh_time<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), DotError>> + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn fetch_status<'async_trait>(
self,
response: Response
) -> Pin<Box<dyn Future<Output = Result<Self::Output, DotError>> + 'async_trait>>
where
Self: 'async_trait;
fn from_response<'async_trait>(
self,
response: Response
) -> Pin<Box<dyn Future<Output = Result<Self::Output, DotError>> + 'async_trait>>
where
Self: 'async_trait;
}
Expand description
Another helper trait for the Update
trait.
Required Associated Types
Required Methods
Refreshes the last time Self
was accessed.
Matches the Self
’s status code to see if it has been updated.