pub struct Client {
pub inner: Client,
pub base: Url,
pub limiter: Limiter,
}Fields§
§inner: Client§base: Url§limiter: LimiterImplementations§
Source§impl Client
impl Client
pub fn new(key: impl Into<Key>) -> Result<Self, ClientNewError>
pub async fn get_nodes( &self, request: &GetNodesRequest<'_>, ) -> Result<GetNodesResponse, ClientGetNodesError>
pub async fn handle<T>(response: Response) -> Result<T, HandleError>where
T: DeserializeOwned,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl !UnwindSafe 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