pub struct InvokerService<T> { /* private fields */ }
Implementations§
Source§impl<T> InvokerService<T>where
T: Service,
impl<T> InvokerService<T>where
T: Service,
pub fn new(service: T, tx: UnboundedSender<()>) -> InvokerService<T>
Trait Implementations§
Source§impl<T> Invoker for InvokerService<T>
impl<T> Invoker for InvokerService<T>
Source§type InvokeStream = Pin<Box<dyn Stream<Item = Result<MessagePack, Status>> + Send>>
type InvokeStream = Pin<Box<dyn Stream<Item = Result<MessagePack, Status>> + Send>>
Server streaming response type for the Invoke method.
fn invoke<'life0, 'async_trait>(
&'life0 self,
request: Request<Invocation>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::InvokeStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<T> Freeze for InvokerService<T>where
T: Freeze,
impl<T> RefUnwindSafe for InvokerService<T>where
T: RefUnwindSafe,
impl<T> Send for InvokerService<T>where
T: Send,
impl<T> Sync for InvokerService<T>where
T: Sync,
impl<T> Unpin for InvokerService<T>where
T: Unpin,
impl<T> UnwindSafe for InvokerService<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