pub struct Test { /* private fields */ }Expand description
Test models a minimal provider-kind-specific protocol used to verify new provider kind registration and lifecycle wiring.
Client for the gestalt.provider.v1.Test service.
Implementations§
Source§impl Test
impl Test
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Sets a deadline applied to every unary call; calls that run past it fail with DEADLINE_EXCEEDED. Streaming calls are unaffected.
Sourcepub async fn hello_world(
&mut self,
request: HelloWorldRequest,
) -> Result<String, GestaltError>
pub async fn hello_world( &mut self, request: HelloWorldRequest, ) -> Result<String, GestaltError>
Calls gestalt.provider.v1.Test.HelloWorld.
Sourcepub async fn hello_world_raw(
&mut self,
request: HelloWorldRequest,
) -> Result<HelloWorldResponse, GestaltError>
pub async fn hello_world_raw( &mut self, request: HelloWorldRequest, ) -> Result<HelloWorldResponse, GestaltError>
Calls gestalt.provider.v1.Test.HelloWorld with the full request and response messages.
Auto Trait Implementations§
impl !Freeze for Test
impl !RefUnwindSafe for Test
impl !UnwindSafe for Test
impl Send for Test
impl Sync for Test
impl Unpin for Test
impl UnsafeUnpin for Test
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