pub struct NetworkClient { /* private fields */ }
Implementations§
Source§impl NetworkClient
impl NetworkClient
pub fn new(sdk_key: &str, headers: Option<HashMap<String, String>>) -> Self
pub fn shutdown(&self)
pub async fn get<T>(
&self,
request_args: RequestArgsTyped<T>,
) -> Result<T, NetworkError>where
T: Clone,
pub async fn post<T>(
&self,
request_args: RequestArgsTyped<T>,
body: Option<Vec<u8>>,
) -> Result<T, NetworkError>where
T: Clone,
Auto Trait Implementations§
impl Freeze for NetworkClient
impl !RefUnwindSafe for NetworkClient
impl Send for NetworkClient
impl Sync for NetworkClient
impl Unpin for NetworkClient
impl !UnwindSafe for NetworkClient
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