Skip to main content

Module core

Module core 

Source
Expand description

Sans-IO core: operation descriptions, request/response plumbing, and pagination. Nothing here performs IO; the Client and BlockingClient executors do.

Re-exports§

pub use operation::Operation;
pub use operation::json_body;
pub use pagination::DEFAULT_PAGE_SIZE;
pub use pagination::Listing;
pub use pagination::Page;
pub use pagination::Pagination;
pub use pagination::Paginator;
pub use ratelimit::RateLimit;
pub use ratelimit::ResponseMeta;
pub use request::RequestSpec;
pub use retry::RetryPolicy;

Modules§

operation
The Operation trait: a sans-IO description of a single API call.
pagination
Offset/limit pagination helpers.
ratelimit
Rate-limit metadata extracted from response headers.
request
The fully-resolved request description shared by both executors.
response
Response parsing shared by both executors.
retry
Retry policy: a sans-IO description of when and how long to wait before retrying a failed request. The executors own the actual sleeping (tokio::time::sleep for async, std::thread::sleep for blocking) so this module pulls in no runtime and stays unit-testable.