pub struct TripleServer<T> { /* private fields */ }
Implementations
sourceimpl<T> TripleServer<T>
impl<T> TripleServer<T>
sourceimpl<T> TripleServer<T>where
T: Codec,
impl<T> TripleServer<T>where
T: Codec,
pub async fn client_streaming<S, B>(
&mut self,
service: S,
req: Request<B>
) -> Response<BoxBody>where
S: ClientStreamingSvc<T::Decode, Response = T::Encode>,
B: Body + Send + 'static,
B::Error: Into<Box<dyn Error + Send + Sync>> + Send,
pub async fn bidi_streaming<S, B>(
&mut self,
service: S,
req: Request<B>
) -> Response<BoxBody>where
S: StreamingSvc<T::Decode, Response = T::Encode>,
S::ResponseStream: Send + 'static,
B: Body + Send + 'static,
B::Error: Into<Box<dyn Error + Send + Sync>> + Send,
pub async fn server_streaming<S, B>(
&mut self,
service: S,
req: Request<B>
) -> Response<BoxBody>where
S: ServerStreamingSvc<T::Decode, Response = T::Encode>,
S::ResponseStream: Send + 'static,
B: Body + Send + 'static,
B::Error: Into<Box<dyn Error + Send + Sync>> + Send,
pub async fn unary<S, B>(
&mut self,
service: S,
req: Request<B>
) -> Response<BoxBody>where
S: UnarySvc<T::Decode, Response = T::Encode>,
B: Body + Send + 'static,
B::Error: Into<Box<dyn Error + Send + Sync>> + Send,
Trait Implementations
sourceimpl<T> BusinessConfig for TripleServer<T>
impl<T> BusinessConfig for TripleServer<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for TripleServer<T>where
T: RefUnwindSafe,
impl<T> Send for TripleServer<T>where
T: Send,
impl<T> Sync for TripleServer<T>where
T: Sync,
impl<T> Unpin for TripleServer<T>where
T: Unpin,
impl<T> UnwindSafe for TripleServer<T>where
T: UnwindSafe,
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