pub struct Api<H> { /* private fields */ }Expand description
One network’s endpoints, rate limited.
Implementations§
Trait Implementations§
Source§impl<H: Http> Transport for Api<H>
impl<H: Http> Transport for Api<H>
Source§async fn post(&self, path: &str, body: String) -> Result<String, TransportError>
async fn post(&self, path: &str, body: String) -> Result<String, TransportError>
Past the gate, then to the network’s endpoint. A read near the limit
is held back as TransportError::RateLimited without going out; an
action never is, but a closed gate holds both. Nothing is retried.
Auto Trait Implementations§
impl<H> !Freeze for Api<H>
impl<H> RefUnwindSafe for Api<H>where
H: RefUnwindSafe,
impl<H> Send for Api<H>where
H: Send,
impl<H> Sync for Api<H>where
H: Sync,
impl<H> Unpin for Api<H>where
H: Unpin,
impl<H> UnsafeUnpin for Api<H>where
H: UnsafeUnpin,
impl<H> UnwindSafe for Api<H>where
H: 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