pub struct AppClient<T: Send + Sync> { /* private fields */ }Expand description
Transport-neutral client for the public gestaltd App surface.
Implementations§
Source§impl<T: UnaryTransport> AppClient<T>
impl<T: UnaryTransport> AppClient<T>
pub async fn invoke_raw( &self, request: AppInvokeRequest, ) -> Result<OperationResult, GestaltError>
pub async fn invoke( &self, request: AppInvokeRequest, ) -> Result<Value, InvokeError>
pub async fn invoke_graphql( &self, request: AppInvokeGraphQLRequest, ) -> Result<OperationResult, GestaltError>
Sourcepub async fn invoke_graphql_raw(
&self,
request: AppInvokeGraphQLRequest,
) -> Result<OperationResult, GestaltError>
pub async fn invoke_graphql_raw( &self, request: AppInvokeGraphQLRequest, ) -> Result<OperationResult, GestaltError>
invoke_graphql_raw is an alias for Self::invoke_graphql.
pub async fn invoke_graphql_decoded( &self, request: AppInvokeGraphQLRequest, ) -> Result<Value, InvokeError>
Source§impl<T: SyncUnaryTransport> AppClient<T>
impl<T: SyncUnaryTransport> AppClient<T>
pub fn invoke_raw_sync( &self, request: AppInvokeRequest, ) -> Result<OperationResult, GestaltError>
pub fn invoke_sync( &self, request: AppInvokeRequest, ) -> Result<Value, InvokeError>
pub fn invoke_graphql_sync( &self, request: AppInvokeGraphQLRequest, ) -> Result<OperationResult, GestaltError>
Sourcepub fn invoke_graphql_raw_sync(
&self,
request: AppInvokeGraphQLRequest,
) -> Result<OperationResult, GestaltError>
pub fn invoke_graphql_raw_sync( &self, request: AppInvokeGraphQLRequest, ) -> Result<OperationResult, GestaltError>
invoke_graphql_raw is an alias for Self::invoke_graphql.
pub fn invoke_graphql_decoded_sync( &self, request: AppInvokeGraphQLRequest, ) -> Result<Value, InvokeError>
Source§impl<T: ServerStreamingTransport> AppClient<T>
impl<T: ServerStreamingTransport> AppClient<T>
pub async fn invoke_stream( &self, request: AppInvokeRequest, ) -> Result<InvokeFrameStream, GestaltError>
Source§impl<T: SyncServerStreamingTransport> AppClient<T>
impl<T: SyncServerStreamingTransport> AppClient<T>
pub fn invoke_stream_sync( &self, request: AppInvokeRequest, ) -> Result<InvokeFrameStream, GestaltError>
Auto Trait Implementations§
impl<T> Freeze for AppClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for AppClient<T>where
T: RefUnwindSafe,
impl<T> Send for AppClient<T>
impl<T> Sync for AppClient<T>
impl<T> Unpin for AppClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for AppClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for AppClient<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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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