pub struct StatsigGrpcClient { /* private fields */ }Implementations§
Source§impl StatsigGrpcClient
impl StatsigGrpcClient
pub fn new( sdk_key: &str, proxy_api: &str, authentication_mode: Option<String>, ca_cert_path: Option<String>, client_cert_path: Option<String>, client_key_path: Option<String>, domain_name: Option<String>, ) -> Self
pub async fn connect_client(&self) -> Result<(), StatsigGrpcErr>
pub fn reset_client(&self)
pub async fn get_specs( &self, lcut: Option<u64>, ) -> Result<ConfigSpecResponse, StatsigGrpcErr>
pub async fn get_specs_stream( &self, lcut: Option<u64>, ) -> Result<Streaming<ConfigSpecResponse>, StatsigGrpcErr>
Auto Trait Implementations§
impl !Freeze for StatsigGrpcClient
impl !RefUnwindSafe for StatsigGrpcClient
impl Send for StatsigGrpcClient
impl Sync for StatsigGrpcClient
impl Unpin for StatsigGrpcClient
impl UnsafeUnpin for StatsigGrpcClient
impl !UnwindSafe for StatsigGrpcClient
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request