pub struct NetworkClient { /* private fields */ }
Implementations§
Source§impl NetworkClient
impl NetworkClient
pub fn new( sdk_key: &str, headers: Option<HashMap<String, String>>, disable_network: Option<bool>, ) -> Self
pub fn shutdown(&self)
pub async fn get<T, D>( &self, request_args: RequestArgsTyped<T, D>, ) -> Result<T, NetworkError>
pub async fn post<T, D>( &self, request_args: RequestArgsTyped<T, D>, body: Option<Vec<u8>>, ) -> Result<T, 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