pub struct TripleClient { /* private fields */ }
Implementations
sourceimpl TripleClient
impl TripleClient
sourceimpl TripleClient
impl TripleClient
pub async fn unary<C, M1, M2>(
&self,
req: Request<M1>,
codec: C,
path: PathAndQuery
) -> Result<Response<M2>, Status>where
C: Codec<Encode = M1, Decode = M2>,
M1: Send + Sync + 'static,
M2: Send + Sync + 'static,
pub async fn bidi_streaming<C, M1, M2>(
&mut self,
req: impl IntoStreamingRequest<Message = M1>,
codec: C,
path: PathAndQuery
) -> Result<Response<Decoding<M2>>, Status>where
C: Codec<Encode = M1, Decode = M2>,
M1: Send + Sync + 'static,
M2: Send + Sync + 'static,
pub async fn client_streaming<C, M1, M2>(
&mut self,
req: impl IntoStreamingRequest<Message = M1>,
codec: C,
path: PathAndQuery
) -> Result<Response<M2>, Status>where
C: Codec<Encode = M1, Decode = M2>,
M1: Send + Sync + 'static,
M2: Send + Sync + 'static,
pub async fn server_streaming<C, M1, M2>(
&mut self,
req: Request<M1>,
codec: C,
path: PathAndQuery
) -> Result<Response<Decoding<M2>>, Status>where
C: Codec<Encode = M1, Decode = M2>,
M1: Send + Sync + 'static,
M2: Send + Sync + 'static,
Trait Implementations
sourceimpl Clone for TripleClient
impl Clone for TripleClient
sourcefn clone(&self) -> TripleClient
fn clone(&self) -> TripleClient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TripleClient
impl Debug for TripleClient
sourceimpl Default for TripleClient
impl Default for TripleClient
sourcefn default() -> TripleClient
fn default() -> TripleClient
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for TripleClient
impl Send for TripleClient
impl Sync for TripleClient
impl Unpin for TripleClient
impl UnwindSafe for TripleClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request