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