pub struct Client { /* private fields */ }Expand description
An Epochal API client, from Client::builder. Each API module is a handle from it, such as
time_portal. Cheap to clone; clones share one connection pool.
Implementations§
Source§impl Client
impl Client
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
A builder for a client; Client::builder().build() takes every default. The client never
follows redirects, which would carry the key elsewhere, gives up connecting after 10 s, and
gives up on a response that sends nothing for 85 s, 5 s past the longest the API takes to
answer (a file write).
Source§impl Client
impl Client
Sourcepub fn time_portal(&self, as_of: DateTime<Utc>) -> TimePortal
pub fn time_portal(&self, as_of: DateTime<Utc>) -> TimePortal
The time portal held to as_of: web search, web fetch and sandboxes as they stood then.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Forget for Client
impl Freeze for Client
impl Move for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
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