pub struct AuthServiceClient<T> { /* private fields */ }Expand description
Phase 1 WASM-compatible gRPC client for AuthService.
This is a hand-written replacement for the tonic-generated client stub.
Implementations§
Source§impl<T> AuthServiceClient<T>where
T: GrpcService<Body>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> AuthServiceClient<T>where
T: GrpcService<Body>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub async fn request_otp( &mut self, request: impl IntoRequest<OtpRequest>, ) -> Result<Response<OtpRequestAck>, Status>
pub async fn login( &mut self, request: impl IntoRequest<LoginRequest>, ) -> Result<Response<LoginResponse>, Status>
pub async fn logout( &mut self, request: impl IntoRequest<LogoutRequest>, ) -> Result<Response<LogoutResponse>, Status>
Auto Trait Implementations§
impl<T> !Freeze for AuthServiceClient<T>
impl<T> RefUnwindSafe for AuthServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for AuthServiceClient<T>where
T: Send,
impl<T> Sync for AuthServiceClient<T>where
T: Sync,
impl<T> Unpin for AuthServiceClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for AuthServiceClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for AuthServiceClient<T>where
T: UnwindSafe,
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