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( &self, request_args: RequestArgs, ) -> Result<String, NetworkError>
pub async fn post( &self, request_args: RequestArgs, body: Option<Vec<u8>>, ) -> Result<String, NetworkError>
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